Can I save my Foobar2000 layout to disk?
39
Solution 1
Besides backing up %AppData%\Foobar2000\Theme.fth
, you can also use the Preferences / Default User Interface / Export Theme option.
Solution 2
Yes indeed you can :)
Your layout lives in
%appdata%\foobar2000
Copy everything in that directory and paste it in the same directory on the other machines to transfer layouts/settings.
Related videos on Youtube
![Silas Nicholls](https://lh6.googleusercontent.com/-Pw3XFBYUK-E/AAAAAAAAAAI/AAAAAAAAFHg/ltvHwA8tVF8/photo.jpg?sz=256)
Author by
Silas Nicholls
Updated on September 18, 2022Comments
-
Silas Nicholls almost 2 years
I was following this tutorial and trying to implement a profile updating tool. One piece of code they provided was as follows:
@login_required @transaction.atomic def update_profile(request): if request.method == 'POST': user_form = UserForm(request.POST, instance=request.user) profile_form = ProfileForm(request.POST, instance=request.user.profile) if user_form.is_valid() and profile_form.is_valid(): user_form.save() profile_form.save() messages.success(request, _('Your profile was successfully updated!')) return redirect('settings:profile') else: messages.error(request, _('Please correct the error below.')) else: user_form = UserForm(instance=request.user) profile_form = ProfileForm(instance=request.user.profile) return render(request, 'profiles/profile.html', { 'user_form': user_form, 'profile_form': profile_form })
I managed to work out what all of meant apart from the line
return redirect('settings:profile')
After changing the variables, I get the error :
NoReverseMatch at /profile/
'settings' is not a registered namespace
Do I need to create something else? Any help would be appreciated.
-
Shahid Tariq over 4 yearsThe blog you are following has not mentioned the urls.py file. You need to create a python file named urls.py and add
/profile
path in there -
Shahid Tariq over 4 yearsYou can learn how to add urls in your app here [docs.djangoproject.com/en/3.0/topics/http/urls/#example]
-
-
Silas Nicholls over 4 yearsThank you! I ended up just changing the redirect to '/' but your explanation helped me understand.