Rajesh
https://imgur.com/a/5MAYcci
Rajesh
https://imgur.com/a/5MAYcci
Help me to solve this error?
Ragul
Hi im beginner of django any one help me to study django
Vishal
At beginning you can follow django official documentation And real python will help you much
Anonymous
Hi im beginner of django any one help me to study django
1. Django official docs are the best place to start. They have documented it very nicely. 2. https://simpleisbetterthancomplex.com/ 3. Sign up for a course at udemy. Course by Jose Portilla is covers python , Django and basic of front end languages. All the best.
Gil
Help me to solve this error?
Last slash was in browser url ?
Rajesh
Doragonsureiyā
Hi im beginner of django any one help me to study django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Paschaljet
🙏 pertaining to my problem yesterday. When I run the command "collectstatic", django couldn't locate the " static" directory in my app STATICFILES_DIRS = [ os.path.join(BASE_DIR,"static"), ] but when I add the app as this STATICFILES_DIRS = [ os.path.join(BASE_DIR,"products/static"), ]. It does locate it...why
Paschaljet
Help*
Wannabe
for collectstatic you need STATIC_ROOT
Paschaljet
I have my root
Shihasz
🙏 pertaining to my problem yesterday. When I run the command "collectstatic", django couldn't locate the " static" directory in my app STATICFILES_DIRS = [ os.path.join(BASE_DIR,"static"), ] but when I add the app as this STATICFILES_DIRS = [ os.path.join(BASE_DIR,"products/static"), ]. It does locate it...why
By default django locates static files in the app directory.. If u want your static files in a seperate directory inside the app then you should mention it in STATICFILES_DIRS. For production you have set a STATIC_ROOT in which django saves all of static files from all of ur apps by collectstatic.
Ojas
So , I saw twillio , it seems a bit expensive.. what I'm thinking is to generate a random 4/6 digit otp myself and send sms(otp) using some other package.. is this the correct way to do so?
Ojas
Like using api , user can send that otp and then I can verify it from server side myself and then register the user or so.. I'm not sure if tha would be good in long run or not😅
Shihasz
So which is better for production?
You should set a static root and run collectstatic on server each time u make changes on ur local static files.
Ojas
Idk how secure it would be to generate one myself , that's what I'm confused of
Vj
Can anyone tell me what is restful framework in simple and understandable Plzz
Ojas
Can anyone tell me what is restful framework in simple and understandable Plzz
Django rest framework basically is used for api creation afaik
Shihasz
Idk how secure it would be to generate one myself , that's what I'm confused of
There you have to take care of encryption, so on. So it is better to take a complete api than maintaining urself.
Ojas
Can u explain me plzz how to create API
https://medium.com/swlh/build-your-first-rest-api-with-django-rest-framework-e394e39a482c
Vj
So basically to use previous projects functionality in new project by using restframework is this??
The
How to add ssl in django project
Anonymous
Hey guys, i am currently making a mastering Django 3 series for free. Anyone interested?
Anonymous
Anonymous
Then use letsencrypt
The
--checklist warnings solved
The
Then use letsencrypt
Im using godaddy server
Anonymous
It provides free and easy ssl certificate
Anonymous
The
Then use letsencrypt
certbot doesnt get supported
The
by godaddy
The
no 2
Anonymous
Ohk...
Anonymous
So, you need to buy a premium ssl
The
premium?
Anonymous
Maybe from GoDaddy itself
The
no free ssl?
The
i tried freessl.com
Anonymous
no free ssl?
Lets encrypt is free
Anonymous
But it is not supported...
Anonymous
So you don't have any other option
The
could you help me with the settings files and other stuff with production
Anonymous
Or maybe dont use GoDaddy server
The
I already purchased it
Anonymous
I already purchased it
You can return it
Anonymous
I also did that once
The
its been 4 months
Anonymous
Ohh
The
the site was
The
wrking in
The
http
Anonymous
I see
The
now need to https
Anonymous
What's the site?
Anonymous
Url?
The
its not wrking now
Anonymous
Oh
The
since i made edits in settings.py
Anonymous
Anonymous
Oh
Anonymous
You are facing errors?
Anonymous
If yes, then what?
The
The main problem is I cant run any projects in local server
The
code: 400, message bad request version..... You are accessing the developmnent server in https, but it only suports http
The
but I dont know why all my projects got effected
The
could u help me pls?
The
where can I change https to http in local server?
Anonymous
Local server only has http