Carlos
Hi there, can anyone, please, suggest me, a free hosting or free vps with basic resources for starting a Django project? Learning purposes.
Anonymous
Eliab
Salisu
old
Hey guyz I'm practise Django but when I type python manage.py runserver pycharm keeps telling that can't open file "manage.py" no such file or directory...help
Muflone
Sourav
Sourav
Hey guys I am currently deploying my django site but I am getting the following error.
“Web application could not be started by the Phusion Passenger application server.”
Can anyone help why is this coming?
old
Sourav
Change your current directory to the directory where your manage.py file is present
Sourav
Use cd directoryname
Sourav
And then try running the command
Ghorz
Sourav
Check your logs
I tried but there is no log file present. But there is no log file
Дауран
Hello guys , I have deleted the files in the folder migrations and dB.sqlite3 for cleaning rubbish or are there any way to clean up rubbish files in datebase
Sourav
Check your logs
I am confused a lot in this. Searched on the internet too but didn’t find a good solution. Please elaborate
Sam
Is there any feature by which I can authencate my username and password if they are at different pages.
Can anyone help with this
Eliab
Eliab
Eliab
Only to windows.
Nateq
class based or function based views? which one is good for beginners? as of now i am familiar with both but i am confused about which one should i used further for advanced features?
Knight
Does adding column to existing table in django Model affect existing data in database?
Abrar
Yes..
Abrar
You will need to set a default value and then do the migration
Knight
Aha ok, thanks!
يوسف
Sam
Is there any feature by which I can authencate my username and password if they are at different pages.
Can anyone help with this
Nats
I am in a development environment and want to use django to manage static files
Nats
settings.py
DEBUG = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
Nats
myproject/myproject/urls.py
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Anonymous
Nats
Nats
but I get 404 error like that "GET /static/css/base.css HTTP/1.1" 404
Nats
can anyone give me some instructions?
Aneesh
Is there any problem occurs if I use post_save signal and model save ath Sam model
Aneesh
Any one know about this please help
Anonymous
if i have multiple users..say employee and head of dept..how can i use HOD's data to check his/her department and have a url that directs them to the HOD page depending on the department he/she is
Sourav
Anonymous
Aneesh
Yp
Aneesh
That is possible .bt I need to know that it is correct or not?
Anonymous
Aneesh
Nop
Anonymous
Nop
ok..according to my understanding..if you use both..post_save will be executed after the save()..i asked if its an extension of the user because in most cases a user wants to save a model extension that is related to the user at the same time a user is saved..if its an independent model the save() method will work just fine
Nats
https://github.com/luyang93/Django-3-by-Example/tree/feature/Chapter08/Chapter07/myshop
Nats
I cannot find more errors .....
Nats
https://github.com/luyang93/Django-3-by-Example/blob/feature/Chapter08/Chapter07/myshop/myshop/settings.py this is settings.py,
Nats
https://github.com/luyang93/Django-3-by-Example/blob/feature/Chapter08/Chapter07/myshop/myshop/urls.py, this is urls.py
Nats
I think, I set debug =True...
and set STATIC_ROOT and MEDIA_ROOT in settings.py
Nats
In urls.py, i set
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Aneesh
Nats
but, only media works, static doesn't work.
Anonymous
Nats
any ideas?
Sh
Assalamu alaikum, I am using prefetch_related in ORM. but when I pring queries there are more than one sql query.
Sh
fields = Field.objects.prefetch_related('quarantines','crops').select_related('district__region').all()
Nateq
Mite
How can I see my django web page that I hosted locally on my computer I wanted to see that page on my android phone
Aneesh
I have an array that contain json elements any one know how to access it with firebase python.
I need to access the inner data please help
Abdul
Hello, i am getting a NoReverseMatch error in my app, necessary files and error message are in https://hastebin.com/veyokexate.xml . Thank you in advance.
Дауран
Anonymous
stack
stack
python manage.py 192.167.0.176:8000
stack
if your laptop and mobile are connected to same wifi or local network you can open your page
Zerihune
Mite
Okay, Tnx guys for you help
Bunty chhatri wala..
Using path
How to make a url like this:
localhost:8000/postcodes/?postcode=8000&radius=90
Basically I'm trying rest api..
Which can accept data from a user..like above..
Gk
https://stackoverflow.com/questions/63558412/web-scraping-with-filter-data-based-on-dropdown-button-and-date-selection-using
Ismail
Is there any way to make Google maps inside Django using SqlLite?
Anonymous
Please in Django 3.0 and above do you need to import the staticfiles_urlpatterns in the rooot urls.py???
I need help please
Karthik
I am getting error: template does not exist: testapp/results.html
Karthik
Any one can say how slove this error
Anonymous
Be sure to register the templates in the settings.py
Shreehari
hey guys
how can i get just the file name in aws s3 instead of the file name with path
Anonymous
Nats