Beka
Beka
?*
Prakhar
I have started learning django if any one is new we can do it together
Yesu
Beka
What status code you are getting?
Yesu
200
Yesu
And the type is 'text/html'
Beka
That's is strange.. at least images being found.
Yesu
I can share the screenshots if needed
Beka
MEDIA_URL =
MEDIA_ROOT =
did you set up this in settings.py?
Yesu
Yes
Media_url='/media/'
Beka
I'm thinking if variable is case sensitive.
Yesu
Media_root = os.path.join(BASE_DIR,'media')
Beka
Try All whith capital letters
Yesu
No no media URL is uppercase
Yesu
I have just typing it in lowercase
Yesu
Beka
Try with uppercase
Beka
Seems like everything is set up, try uppercase. And delete cashes in your browser or use incognito mode.
Yesu
Okay let me check that
Yesu
It is not working
Yesu
In google console
Sources -> only see the static folder can't see media folder
Neal
SMTP server disconnected :please run connect () first
This error is coming in my project
What is the solution for it??
Yesu
Finally found the solution it is due to my URL settings in app
Kushal
After updated django to 3.1, i am facing ImportError in python_unicode_compatible
Sai
Hi
Could you help me to
Conver UTC into localtime zone during extraction or the API response
Anonymous
how can i hide a choice in a model form choice field in django?
KP
"Disabled" option for choiceField - Django - Stack Overflow
https://stackoverflow.com/questions/673199/disabled-option-for-choicefield-django
Kushal
What will the issue that server will not running?
محمد دلشاد
Abdullah
hi guys.my first django site is aviable:
Abdullah
https://cargoglobal.pythonanywhere.com/
Abdullah
codes in github:
Abdullah
https://github.com/Abdullah-V/CargoGlobal.net/
Ayush
HI GUYS, I have downloaded a django project from GitHub and unzip in my computer. How to run this project in my local machine. I run the command python manage.py runserver but it displays lots of error in my terminal. Pls help
Abdullah
share errors with we
Abdullah
you intall all packages(in installed django project)?
Ayush
Abdullah
this is probably the reason for errors
Ayush
How to fix this?
Kushal
Hello all, i uninstall python and django then installed it again after Python i installed Django. Now Python is working wheree as django is not.
Abdullah
see project modules and install them all
Kushal
I am able to make django project but i can't migrate and run the project
Kushal
There is no error displayed.
Abdullah
are you select interper?
Kushal
Yes i did
Abdullah
Kushal
Yes i did
Abdullah
and you do makemigrations?
Kushal
I created project then migrate
Dexter
Is there a way to get data from form to get_context_data without model
Kushal
But not working
Abdullah
strange
Kushal
strange
How to remove virtual environment and django completely
Abdullah
what OS you use?
Abdullah
windows or gnu/linux or macos?
Abdullah
okey for ubuntu: sudo pip3 uninstall Django
Abdullah
if you want uninstall pip: sudo apt-get remove python-pip3
Ayush
A general question.. should I stick with the SQLite database which comes with django or change to MySQL. I am trying to find some tutorial on youtube to but every tutorial is working with Django Admin SQLite not MySQL. Please give me your suggestions
Saksham Mittal
https://github.com/saksham1991999/django-for-everybody-specialization
It took me around a month to solve all the assignments and quizzes, so if anyone has enrolled for the Django for Everybody Specialization Coursera course by University of Michigan, it will really help you out.
If you have/Haven't enrolled for the course, still please star the repo to support similar support for Django. As we know Django developers are less as compared to others, so this will help to motivate Django developers
Saksham Mittal
Anyone completed dj4e ??
https://github.com/saksham1991999/django-for-everybody-specialization
It took me around a month to solve all the assignments and quizzes, so if anyone has enrolled for the Django for Everybody Specialization Coursera course by University of Michigan, it will really help you out.
If you have/Haven't enrolled for the course, still please star the repo to support similar support for Django. As we know Django developers are less as compared to others, so this will help to motivate Django developers
Mirco
!paste
Doragonsureiyā
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
ford
!paste
okey does django-rest-auth have registration endpoint url and have anyone used it
Mirco
Anonymous
ford
They talk about it saying its there at https://django-rest-auth.readthedocs.io/en/latest/api_endpoints.html#registration but when you run the code their is no just end point
R.U.S.H.A.B.H
Any login logout user with session management example / tutorial ... I'm not getting much on Google that's why ...
R.U.S.H.A.B.H
!
Mirco
ford
U have a 404 ?
when you are /manage.py show_urls there no such urls yet others like /rest-auth/login are their
Mirco
Only login one ?
ford
Only login one ?
and others like rest password, show user ony resgistration is missing
Mirco
So if you don't enable it, you won't see urls
ford
ford
so when i do pip freeze it was listing all the libraries