Maz
Anyway, I've deleted the migration files. How do I supply a default value for this school field, given that School.Id is an integer?
Maz
😑 then use ForeignKey() but dont add null=True
Done. Believe me I'm more frustrated than you are 😅
Maz
It still wants a default value for the existing non-nullable fields.
Val
hey guys please what is the command to drop all tables in a database in heroku postgres?
inchidi
It still wants a default value for the existing non-nullable fields.
true, you can enter the default when you do makemigrations
inchidi
simply enter the id of School
Maz
How? Tried a string...says the foreign key field is an integer
Maz
Tried '3'...lmao...failed too
inchidi
makemigrations >> option 1 set default >> enter 1
inchidi
enter 1 as int not str tho
Maz
Okay...
Val
iirc you can do that via heroku console (web)
i am currently in my heroku command line.
Django Bot
>> Links - Web API performance: profiling Django REST framework - Optimizing slow Django REST Framework performance
Maz
Is it possible to edit the admin template, like give it some CSS and new UI effects?
Maz
First of all where is the admin template located?
pino@mastrobirraio ~$
First of all where is the admin template located?
You can try to read here https://docs.djangoproject.com/en/2.0/ref/contrib/admin/ if there are usefull informations
Maz
Okay..
Django Bot
>> Links - idlesign/pytest-djangoapp: Nice pytest plugin to help you with Django plugg - Guide to Django E-Commerce (Bonus: a Wagtail Shop Tutorial) - Snipcart - The Right Way™ to do Serverless in Python (Part 2) – IOpipe Blog
Django Bot
>> Links - mirumee/saleor: An e-commerce storefront for Python and Django - The Right Way™ to do Serverless in Python (Part 2) – IOpipe Blog
Django Bot
>> Links - A Django Async Roadmap - Aeracode
Django Bot
>> Links - How to use Django, PostgreSQL, and Docker - William S. Vincent - Django for Beginners - How to Use RESTful APIs with Django
José Miguel
Hi, everybody. Can I define a start value for a attribute model.AutoField() type?
inchidi
Hi, everybody. Can I define a start value for a attribute model.AutoField() type?
https://stackoverflow.com/questions/117800/how-to-get-django-autofields-to-start-at-a-higher-number
José Miguel
Thanks bro!
Meera
hi
Meera
i have created a simple django app
Meera
i dint use virtualenv
Meera
now i want to host it on heroku
Meera
how can i do that....i havent used virtualenv....is it okay? or what should i do
inchidi
how can i do that....i havent used virtualenv....is it okay? or what should i do
https://devcenter.heroku.com/articles/deploying-python
inchidi
you still need to provide requirements.txt tho
Meera
https://devcenter.heroku.com/articles/deploying-python
i have made django app and used sqlite which offers in django by default
Meera
now i know ...heroku needs postgress...how can i change my database in djanog app
Maz
now i know ...heroku needs postgress...how can i change my database in djanog app
This is easy. Just change the backend settings and run migrations. Drama starts when you need to dump data. Believe me I know 😄
Anonymous
How can I Uninstall Django
Anonymous
I wrote “ pip uninstall Django”
Anonymous
anyone know
inchidi
$ python >>> import django if it throw error then django removed
Cool
Pip freeze
inchidi
oh yeah ^ better suggestion
Cool
Pip freeze show you all installed library
Anonymous
* gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-07-13 22:03:08 UTC; 24min ago
Anonymous
nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-07-13 22:23:54 UTC; 2min 31s ago
Anonymous
both of them runturly but when i go in my domain adress have no anything
Anonymous
why ?
Jimmies San
why ?
are them configured? share your conf [of both] using dpaste
Anonymous
Hello, example the django vs react
Anonymous
my Venv = home/majid/intec_site (source home/majid/intec_site/bin/activate)
Anonymous
my toturial :https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
Django Bot
>> Links - timakro/superfsmon: Supervisor plugin to watch a directory and restart prog
Jimmies San
remove http:// from proxy_pass value
Jimmies San
check this http://docs.gunicorn.org/en/stable/deploy.html
Jimmies San
Just this
it's the first error i see, maybe something other. try with this before. step by step, so you can turn back if wrong
Jimmies San
Just this
check this and add proxy_pass parameters too http://docs.gunicorn.org/en/stable/deploy.html#id5
Karim Norman
question about the DRF Token. Is that token secure enough or you guys advice to switch to JWT? (Just for security purpose)
Jimmies San
question about the DRF Token. Is that token secure enough or you guys advice to switch to JWT? (Just for security purpose)
with drf token you have one token for all sessions and no timestamp. database hits every time with jwt you have a lot of options. database hits when needed.
Jimmies San
wait check this out https://stackoverflow.com/questions/31600497/django-drf-token-based-authentication-vs-json-web-token
Jimmies San
and here http://www.django-rest-framework.org/api-guide/authentication/#json-web-token-authentication
Jimmies San
i like JWT a lot
Winamba
Hhjgh
Winamba
Jkbkblñhmjjlkh
Klim
Hello, can somebody help? I have graphene and Django. I have to resolve graphene.List of enum members. How?
Maz
@Inchidi is the resident guru :)
Anonymous
Abdulmateen Tairu: Who is in need of django developer. A website developer.. Notify or message me
Anonymous
Website
Anonymous
Hardly anyone will contact you here I suppose
Anonymous
👍
Anonymous
Abdulmateen Tairu: Who is in need of django developer. A website developer.. Notify or message me
Majority of us are Django Developers😂😂😂. My brother if you have job for us, just buzz me😂😂🙌🙌
Anonymous
😂
Anonymous
hi evrey one i locking for a good videos tutorial for django