Nitish
Why do we need to send it to u ? Just study a bit more
i am studying from 3-4 days but i am not getting proper clarification so please if you have any best material please share it with me
Doragonsureiyā
i am studying from 3-4 days but i am not getting proper clarification so please if you have any best material please share it with me
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rajesh
Any video tutorials
Doragonsureiyā
Any video tutorials
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Sachin
Hai frnds.
Sachin
I have a issue with static files in Django ..
Василий
Hi Guys! I need help) I am learning django now. I submitted the project to Heroku. My project is powered by Heroku. But the admin page does not get styles. What am I doing wrong? On the local server, everything works as it should. Help me please.
Василий
Read topic about static files when DEBUG is False on official docs
Yes, I set DEBUG to False. Is that the problem? Where to read the documentation on this issue?
Sachin
I have changed the settings.py with STATICFILES_DIRS =[ BASE_DIR, 'static') and {% load static %) in individual html pages but still CSS files are not loading. . Plz help ...m
Mirco
DM me brother i will help you in this group media is not allowed
Because you can share code with code sharing tool
Mirco
And you can share media with imgur for example
Mirco
If you help here, your help is useful for other guys too
Nitish
i am not aware of any code sharing tool please tell me the tool
Sachin
Mirco
Media url is for images.. right ...
Media URL is for all the stuff you enable the user to be uploaded
Mirco
A PDF file is a media as well
Nitish
Media url is for images.. right ...
<link rel="stylesheet" href="{% static 'css/offline.css' %}">
Nitish
You have to use external css like this
Nitish
here css/offline.css is in static folder where css is directory and offline.css is external css file
Василий
You will find a nice collectstatic command that will do the magic 😎
https://docs.djangoproject.com/en/3.0/ref/contrib/staticfiles/ Read here?))
Mirco
And https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/
Mirco
You have to use external css like this
What are u talking about ? He's not seeing statics just because he didn't run collectstatic
Mirco
I have a issue with static files in Django ..
The main concept is: DEBUG = True = Django will use its staticfiles app to serve statics DEBUG = False = Django needs collectstatic to be run to copy all the static files into one directory ( STATIC_ROOT ) specified by you
Mirco
The other main concept is don't use Django to serve statics into production but demand it to webserver like nginx, apache or use external storage like S3
Mirco
For Heroku, whitenoise is often recommended but imho is good only if your project is small and you don't wanna spend too much money for PaaS
Sachin
You have to use external css like this
I have external css in template ..
Nitish
I have external css in template ..
but this is the syntax to use external css
Mirco
I have external css in template ..
Most of your css are "external" Please read better documentation, you will find all the answers for your issue
Mirco
I have made DEBUG = True.
Perfect, so you have to know that in production you have to set DEBUG to False
Mirco
I have made DEBUG = True.
And if you wanna help but you don't explain all the context, how do you think we can give you a proper and correct help ?
Василий
Yes
Thanks. I will study this documentation. I hope I'll deal) I'm student in the Django)
Василий
So documentation has to be your best friend 💪🏻
If I can’t succeed, can I ask for help here?))😊
Василий
Obviously
Thanks)
Manish
checks: - app registred -try makemigrations app_name -try migrate app_name for more help, paste in webpaste tool showmigrations
I tried but only migration file created in app but that custom table does not show in postgres Db
Manish
Can u tell me the error.?
i am not getting an any error its not working
Gil
i am not getting an any error its not working
When there's a problem with migrations, is not easy to solve if you don't understand well what are Migrations. However there's a lot of solutions but all are manual solutions. Quick solution. Export data. Remove DB, and initialitze from 0 DB. This implies to reset all migrations https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html Otherr solution (more complex). Know what stage is PotgresDB, what stage is you models. Write/edit manually migrations or edit postgress schemas manually.
Gil
My advices are based on the fact that there is no connectivity problem or auth with postgres. Confirm that please
Manish
It means I have to create schema manually in postgres DB, I can't create DB directly into database by migration command? But default module's tables are created in postgres DB
Muflone
I have updated django version Also makemigrations and migrated still this error
Were you using Django 2.0/2.1 and sqlite before upgrading?
N
Were you using Django 2.0/2.1 and sqlite before upgrading?
Firstly m using 2.1 after error m updated t0 3.0 still not working But again m installed 2.1 2 something then iys working fine Its not working in 3.0 django version
Damron
hi guys! I want to create several users in test db using mixer and list of user credentials: USER_LIST_CREDENTIAL = [ {'username': 'comp', 'password': 'POMPOMPOM', 'is_superuser': True}, {'username': 'user1', 'password': 'POMPOMPOM', }, ] def setUp(self) -> None: mixer.blend('users.User', (i for i in USER_LIST_CREDENTIAL)) But I dont know how to unpack each item if list, can you pls help me?
Muflone
Yes
Django 2.0 and 2.1 had a bug which created wrong references with _old suffix. The only practical way is to drop the database and create it again with Django 2.2 or 3.0
Manish
Thank you😊👍
Nitikesh
Hey everybody I have trouble writing test cases of the result view for the django poll application. Please help me sort it out
Nirmal
https://www.udemy.com/course/python-and-django-full-stack-web-developer-bootcamp/
Nirmal
https://www.udemy.com/course/python-and-django-full-stack-web-developer-bootcamp/
it is best for learning html , css, javascript , jquery , bootsrap, python, and django
Nirmal
I own this course
Nirmal
If any one want it then dm me
R
Awesome, then the guy who did all the work putting that together, the hundreds of hours making videos, answering questions, then doesnt get his measely $11.99. You are depriving him of his reasonable price for a good course.
ten
Any body know how to build a transit app Please help me
Nirmal
But i want to help those student, Who is not able to buy this course
Shaun
I need to create some JSON to Model methods. The JSON does not match up to the model very well so i have to write some custom code. Should i create my own util function to do this? Or does Django Deserialization give me enough control to put my own code in there?
ᎯⅅℳℐℕℐЅᏆℛᎯᏆᎾℛ
How to CSS fayl connect django?
Moon
How to CSS fayl connect django?
first learn english, man)
Moon
How to CSS fayl connect django?
read docs, you will definitely find the answer