Danil
You don't have permission to view or edit anything.
Danil
that's what i see in admin
Rajjix
but u logged in the admin panel right?
Danil
yeah
Rajjix
python manage.py shell
Rajjix
what's your admin username?
Danil
i don't have it, i use email instead
Rajjix
i mean email
Rajjix
and what's the name of your users app
Danil
users
Rajjix
open the shell and start typing
Rajjix
from users.models import Profile
Danil
yeah
Danil
i've done it alrdy
Danil
oh
Danil
is_superuser == False
Rajjix
me = Profile.objects.filter(email__iexact="<youremail>").get()
Rajjix
don't foget to save
Rajjix
and add is_superuser = True in your superuser function
Danil
yeah
Rajjix
solved?
Danil
yeah
Danil
big thx to you man
Danil
you are the best
Rajjix
you’re welcome
Rajjix
issue closed
Paritosh
Hello everyone, being a beginner in django I'm getting an error which i couldn't understand. I posted it on stack overflow . Can anyone give me some insight regarding this error ?
Paritosh
https://stackoverflow.com/q/53384028/10677273
Rajjix
check ur model fields
Rajjix
One of your predefined max_length fields is too short
Paritosh
Max_length is set to 200 , still getting the same error
Rajjix
delete migrations files in all your apps and makemigrations again
Rajjix
and if that doesn’t work check the fields where you haven’t added a max_length field and add that parameter
Paritosh
Thank you . It works 🙂 ....
Anonymous
Good Python libraries for integrating Django with mongo database..Please share your suggestions?
Sud
Hey do any of you know how to take values from a text box in HTML and use Django to store those values(I'm trying to make a sign in page). I'm a beginner so if anyone could explain in layman terms that'd be nice.
Anonymous
Anonymous
@SudIsLife
Rajjix
probably start with html first and read how browsers render data, before you jump into django
Sud
Thanks.
Sud
@rshrc
ʚɞÇherry Łoveʚɞ
Anonymous
ʚɞÇherry Łoveʚɞ
but there are no inspectdb command
ʚɞÇherry Łoveʚɞ
For real? Lol
yes. it's a real project. very updated.
https://github.com/nesdis/djongo
George
Danil
idk why but i can't log in via my view with user i've registered recently, but i can log with superuser created in bash. what's happening?
Danil
i've checked new user object in admin so everything is fine
inchidi
Danil
yeah, it is
inchidi
Danil
yeah
Danil
that was an error in user manager. all works fine rn
Rajjix
best option would be to open up a terminal, select * from ur user model for your admin and for the new user and compare values, to see where your script is going wrong and fix it
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
<form action="{% url 'textInputOutput:valueText' 'sample_value' %}" method="post">
{% csrf_token %}
<input type="text" id="wasd"/><br/>
<input type="submit">
</form>
I want to pass the text field value instead of this 'sample_value', how to capture and pass through URL?
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
urlpatterns = [
# /textInputOutput/inputText/'submited_text_value'
path(r'inputText/<str:value>', views.addText, name='valueText'),
]
urlpatterns is like this
Nedd
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
Anonymous
wtf?
Anonymous
I can not do research because of this, does anyone know what it can be?
Mirco
Double check your urls pattern
You could have two blog search urls
Anonymous
https://pastebin.com/ScsZ2MnU
cj
Anonymous
yes
Mirco
Your pastebin looks good 🤔
Cannot figure out who makes the post request 🤔🤔
Anonymous
the funny thing is that all this code was in another project, and there everything was working, all I did was copy the files, and now the only mistake that is happening is this.
cj
Anonymous
there is something very strange, even if I edit the html, no change happens when I access the url
cj
🤔
cj
Anonymous
I give up, I see what can be tomorrow.
Anonymous
Anonymous
base contains navigation and footer
Anonymous
yes
cj
🤔
cj
🤷🏻♂️ strange
Rajjix