Gri 🇦🇷🇺🇾
PIP is not recognized as an internal or external command, program or executable batch file 😐
Украинский
Украинский
CMD
Just run again Python installer
Украинский
Just run again Python installer
Then, click "customize" button, and check the "Add Python 3.x to the PATH".
on
U cn guide me here itself @alkalit
on
I need to add such functions to my website where users can track their shipment by given tracking ID
WPA2
Guys do we have a discord server for django discussions as well?
Alex
I need to add such functions to my website where users can track their shipment by given tracking ID
the idea is simple - integrate your website with the API of your delivery service.
Alex
if it has any.
on
We cnt wrk with API
on
We need our own order tracking system
Alex
Explain me mre am nt getting @alkalit
I really don't know what to say more. You have a delivery service (if I understand you right), and to get status of the shipment you ask the service about it.
on
Ok done
on
Like customers are suppose to enter their tracking ID and get the status but status of tat order is controlled by the admin
Alex
Like customers are suppose to enter their tracking ID and get the status but status of tat order is controlled by the admin
Sooo, what is the problem? Create Order model and give it status and id fields. Connect it to the admin interface. Then create a simple get_view that will receive id and return an order.
Arezoo
Hi ..i used class Base64ImageFiels for upload image with bas64 type..how can i use other file with base 64 type
Anonymous
Yes
Have u mentioned AUTH_USER_MODEL in settings.py
Anonymous
Most of the time this is the cause of error . Not setting this field
Anonymous
Set it to ur auth user model
Enam_may
For embedding a video player in my django app do I have to use js? For example adjust its quality,..
Enam_may
Yes
It is impossible to just use python right?
Anonymous
It is impossible to just use python right?
You can try to use brython instead of js
Anonymous
Have u mentioned AUTH_USER_MODEL in settings.py
Oh, I was wrong, how do I do that
Anonymous
Brython is python library to work with client browser.
cj
You can try to use brython instead of js
which will get your front-end side heavier and slower... but nicer for using Python
Enam_may
Thank you so much guys 🙏
cj
Brython is python library to work with client browser.
that transpiles to JS, so it's almost double work for the browser
Enam_may
Thanks
Anonymous
Oh, I was wrong, how do I do that
Whats ur custom auth user class name ?
Anonymous
Oh, I was wrong, how do I do that
Do it like this AUTH_USER_MODEL = 'myapp.MyUser'
Anonymous
Paste the above code on ur settings.py file and the replace myapp with ur appname and MyUser with auth user class
Anonymous
Paste the above code on ur settings.py file and the replace myapp with ur appname and MyUser with auth user class
But I am using accounts/', include ('django.contrib.auth.urls) in my urls.py
Anonymous
Is it relevant
Enam_may
Gk
Hello guys my data is not storing in mysql database but I can see that model created the schema
Gk
What is the issue ?
Gk
Please help
EscanOr
Is it showing in admin page?
Arezoo
Hi did you work with base64filefield?
Doragonsureiyā
Hi did you work with base64filefield?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Sodowojnov
Hi I have the following problem: I’m storing my static files in a static- folder in the root directory for multiple use. In settings.py STATICFILES_DIRS is set up, inside the HTML is used the static- method with the correct root to the css-file inside static. In the DEV-environment of the browser the CSS is recko
Sodowojnov
known*, but is attached with a 404.
Sodowojnov
Does anybody know a common problem that appears during the setup of the static-files? For testing purposes the background is set to blue, but of course nothing happens.
Mirco
Did u run collectstatic ?
mr.INSOMNIA
Hi I have the following problem: I’m storing my static files in a static- folder in the root directory for multiple use. In settings.py STATICFILES_DIRS is set up, inside the HTML is used the static- method with the correct root to the css-file inside static. In the DEV-environment of the browser the CSS is recko
STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "folder name in which you keep your static files")] STATIC_ROOT = "full path where u want to keep your static files in production" Before you set up a nginx server, do python manage.py collectstatic If you using nginx, grant permissions to your static and media files. Go to /home/YourUser/ type in terminal sudo "chown -R :www-data" DjangoProject/" and do the same operation granting permissions to STATIC_ROOT dir and MEDIA_ROOT dir Nginx server config location /static { alias STATIC_ROOT from settings.py; } location /media { alias MEDIA_ROOT from settings.py; } Then run sudo service nginx restart, it should work
mr.INSOMNIA
Let me know if it helps you
Root
Ok any recommended blog ??
Search developers paytm docs
Gk
Is it showing in admin page?
I didn’t added it in admin
Gk
using workbench and it’s not showing in it
EscanOr
using workbench and it’s not showing in it
Check sqlalchemy code Check its code
Gk
Didn’t understand?
Gk
I didn’t understand where to check for error
Gk
As it’s running perfectly but not storing data in database
Vedant
Has the table been created?
Ghorz
The earlier you start using pastebin the better. How do you expect people to read this unformatted code, can you read it yourself. Use pastebin
Michael the wolf 🐺
English please. Some might thought its a spam and ban you
Anonymous
Hey!!
Anonymous
While deploying Django app on Heroku
Anonymous
I'm getting Error ( error while running python manage.py collectstatic -- noinput )
Anonymous
How to fix it
Anonymous
Anyone