Comments (7)
Hi guys I fixed this issue, please follow the instructions for a succesfully create super user without "delete" the username functionality:
- open models.py of base app.
- add to the REQUIRED_FIELDS the parameter 'username', line 13..
it should look like this:
REQUIRED_FIELDS = ['username',]
from studybud.
Comment line 12 in models.py
from studybud.
@chrispydev What does it do? Isn't overriding create_user
a better approach?
from studybud.
Hi guys I fixed this issue, please follow the instructions for a succesfully create super user without "delete" the username functionality:
- open models.py of base app.
- add to the REQUIRED_FIELDS the parameter 'username', line 13..
it should look like this:
REQUIRED_FIELDS = ['username',]
I did the same, it helped with creating supersuper but now i am not able to register from the frontend side.
from studybud.
type this in the cmd/terminal
(env) $ python manage.py shell
This should bring up the shell command prompt as follows:
Python 3.7.2 (default, Mar 27 2019, 08:44:46)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>
Then execute the following:
>>> from django.contrib.auth import get_user_model
>>> User = get_user_model()
>>> user = User.objects.get(username='dennis')
>>> user.set_password('new password')
>>> user.save()
>>> exit()
after this login as admin: admin url - http://127.0.0.1:8000/admin/login/?next=/admin/
login details for login in :
[email protected]
new password
then you can change the other details later on
from studybud.
Hi guys I fixed this issue, please follow the instructions for a succesfully create super user without "delete" the username functionality:
- open models.py of base app.
- add to the REQUIRED_FIELDS the parameter 'username', line 13..
it should look like this:
REQUIRED_FIELDS = ['username',]
Yes it's worked for me
from studybud.
Hi guys I fixed this issue, please follow the instructions for a succesfully create super user without "delete" the username functionality:
- open models.py of base app.
- add to the REQUIRED_FIELDS the parameter 'username', line 13..
it should look like this:
REQUIRED_FIELDS = ['username',]I did the same, it helped with creating supersuper but now i am not able to register from the frontend side.
Now after you create a super user you can turn the as an empty list ---> REQUIRED_FIELDS = []
from studybud.
Related Issues (20)
- Delete icon not showing on messages
- Follow user Bug not appearing HOT 2
- Static file cant't not found
- Room name is not appearing HOT 2
- Can't login from login page HOT 1
- I did this project.But i get an error "'NoneType' object has no attribute 'lower'" on login function HOT 1
- Registration Page is not working HOT 2
- LICENSE
- update-user.html page cancel button is not working and throwing 404
- Room name and description contradicting
- Change the Boiler Plate code for room.html HOT 1
- [Bug] Incorrect Link to Edit Page
- Participant issue in room messages
- Comment-form does not appear.
- Missing " in the login_register template
- Error when installing the package on Windows 10
- ImproperlyConfigured
- filed iteration HOT 1
- Divanov
- Vf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from studybud.