Shihasz
new user who just sign up can not create new post
What is the need of overriding the form_valid() there? You are not using a Model form ??
Masud
What is the need of overriding the form_valid() there? You are not using a Model form ??
i need to refer the author field in the form which did not got from user input
Masud
may be there is a problem
Masud
i can not figur out
Masud
i just need to pass the user instance who sign just up
Masud
and its only his user id
Masud
to save in database
Shihasz
Paste ur form class
Shihasz
U need to override save method of User Creation Form
Masud
😕
Masud
I don't want to mess up with user creation
Masud
is there any way to get user id who just sign up ?
Shihasz
is there any way to get user id who just sign up ?
Current user will be in request object
Ghorz
The write custom profile manager
Masud
ok i am trying
r0nny
hi guys, i m using django 2.2 and applied settings for static files, i used staticfiles_dirs but it's not working at all please help
Ghorz
In profile manager, assign default values on signup
Doragonsureiyā
hi guys, i m using django 2.2 and applied settings for static files, i used staticfiles_dirs but it's not working at all please help
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
r0nny
https://pastebin.com/yc0CbPAi
Shihasz
https://pastebin.com/yc0CbPAi
Where have u stored ur static files
r0nny
in a dir named static
Bunty chhatri wala..
in a dir named static
Put your static files inside a folder named : *static*
Bunty chhatri wala..
In template files.. Write {% load staticfiles %}
Bunty chhatri wala..
On the top
r0nny
did that
r0nny
i got it working now, don't know why it wasn't working before
Bunty chhatri wala..
Okk
r0nny
thanks guys
Ghorz
https://pastebin.com/yc0CbPAi
What about the root url
Ghorz
Did you add static to it
Ghorz
And always restart server with each new static file introduced
Ghorz
Bunty chhatri wala..
Replace with {% load static %}
I work like that only staticfiles
Ghorz
I work like that only staticfiles
If you upgrade to 3 you'll face issues
Bunty chhatri wala..
Ata
I ma new bee in django
Ata
And programming world
Ata
Please guid some tutorials and things to leanr the code
Doragonsureiyā
Please guid some tutorials and things to leanr the code
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Momin
I made registration and login page it is working well
Momin
And logout function too
Momin
And logout function is working
Momin
But when logged user is typing logout in the url it logged the out and i dont want that i wand that the user should only by logged out clicking logout button not by typing url
Momin
You can't do that, Anyway what is the need for that feature?
I thought there would be some function to prevent that
Shihasz
I thought there would be some function to prevent that
Clicking button is just an interface for user. Actual working is based on url, if u prevent a user from accessing that url(or view) user can't even click that button.
Momin
So it is ok that user can type in urls and get logged out?
Momin
Offcourse
Thankyou for giving information 😊
Abhishek
How dynamic value can pass from database in qr code using django?
Danish
How to install django app in Aws ?
Doragonsureiyā
How to install django app in Aws ?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Rajvir
I want to create a chat app. Earlier i thought it is all done by django channels, websocket but today i came to know that there is another thing known as Django-private-chat. Can somebody guide which way to follow... As i have already done a lot with channels, websocket to make that chat app
Bunty chhatri wala..
author= models.CharField('Author' , max_length=30) What does *Author* mean inside charfield.?
Rajvir
Table name
Wang
you can look up document of django Model
Abrar
justin mitchell
Anonymous
Suggesr best lectures for custom user
Momin
https://youtu.be/oZUb372g6Do
Momin
Suggesr best lectures for custom user
For custom registration ☝
Bral Bral
is it normal that django does not see managment script if i put this structure /managment/comands/myscript.py into my root app? Meanwhile if put into any other app , i can execute such as : python manage.py myscript
Abel
Exception Value: Could not parse the remainder: '(1)' from 'roll(1)'
Anonymous
how to post views counter in django
Anonymous
post views count
Anonymous
post views count
what do you mean???
Anonymous
i want total view count in my blog article page do you have any code or something
S
"Not found : /media/ " error coming