Django Bot
>> Links - How to Create Custom Django Management Commands
Django Bot
>> Blogs - Merging Django ORM with SQLAlchemy for Easier Data Analysis
Django Bot
>> Links - Django Web Framework (Python) - Learn web development | MDN
Django Bot
>> Links - python - What is a "slug" in Django? - Stack Overflow
Django Bot
>> Links - Books - William S. Vincent
N S
How can i add an extra field to the django user model
Jimmies San
How can i add an extra field to the django user model
extend the auth model with a custom one and add fields
Jimmies San
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Jimmies San
here 3 way to do this. have fun :)
N S
extend the auth model with a custom one and add fields
You mean inherit user model and add extra fields right
Combot
N S Swamys (0) has increased reputation of Jimmy San Looking Look (2)
N S
here 3 way to do this. have fun :)
Does extending the usercreationform modelform help to add the extra field
Combot
pino@mastrobirraio ~$: (0) has increased reputation of Jimmy San Looking Look (3)
Django Bot
>> Links - Upgrade a Django based application from 1.11 to 2.0 | nezhar.com
Django Bot
>> Links - Welcome to django-slackchat-serializer’s documentation! — django-slackchat-
Django Bot
>> Links - Welcome to django-slackchat-serializer’s documentation! — django-slackchat-
Rasta
Hi
Mirco
Hi 😀
Rasta
Pls i need pdf on django
Rasta
And of python in french
Jimmies San
and two coffee, too. please!
cj
I want a cold beer, please
Dcruz
I need a full example of ModelChoiceField from forms...
Anonymous
And of python in french
Did you try it in english ?
Dcruz
yes, maybe i can download some if its not huge...
Dcruz
Anonymous
yes, maybe i can download some if its not huge...
I sugess you search in github and stack overflow And django docs
Anonymous
yes, link??
I this gp there are many just see shared media links
Anonymous
If you didn't find a links just need say and i send it for you
George
Hello If I import several model objects in my models.py file, will I have a reference problem? from django.db import models from django.contrib.gis.db import models
inchidi
Hello If I import several model objects in my models.py file, will I have a reference problem? from django.db import models from django.contrib.gis.db import models
you can make alias for one/all of them from django.db import models from django.contrib.gis.db import models as gis_models
Django Bot
>> Links - Djangofriendly » Django host reviews and resources
Django Bot
>> Jobs - Full Stack Python / Django Developer
Anonymous
is it possible to use the {% static %} tag inside a styles.css file? If Yes, how?
Maz
Anybody installed Debian Linux from the ISOs on their website? I downloaded two of the 4 images, but when I made them bootable using unetbootin, I get an error, "no OS found on this media (flash disk)". What could be the issue?
Anonymous
what I have so far in my styles.css file: {% load static %} element { background-image: url("{% static 'image.png' %}"); }
Anonymous
Thanks Mirco
Mirco
If I don't go wrong you can use {{ STATIC_URL }}image.png as well If you have defined STATIC_URL in your settings
Василий
Hi everybody. Should I report as a bug the following issue If we write a query of the form MyModel.objects.filter (type__exact = 'sale') or MyModel.objects.filter (type = 'sale') We get the following error: psycopg2.ProgrammingError: ERROR: "sale" column does not exist LINE 1: ... FROM "my_model" WHERE "my_model". "Type" = sale And if you add the escaped quotes then the query is executed normally MyModel.objects.filter (type__exact = '\' sale \ '') python 3.6 django 2.0.8 psycopg2 2.7.5 jango.contrib.gis.db.backends.postgis
Maz
You must set a bootable flag on the USB flash drive. Use partition manager from you OS.
So use windows partition manager to set bootable flag on flash? But Windows is on NTFS, Linux is on ext4 and the flash is in FAT. How will that work exactly? Btw, I've installed other Linux variants with no issue at all via Unetbootin...
Django Bot
>> Links - webargs
Max
Good stuff. Will check it out.
Every operating system that uses some kind of PC-derived hardware needs to be booted. This starts with an ancient, OS-independent bootstrap-search which is initiated by the BIOS (basic input output system) of the PC or server. That BIOS-piece of code tries to load the MBR from the first suitable boot-device. The search order for the boot-device is configurable in the BIOS-setup: which (disk) device first, which next and so on. The "legacy" MBR tries to find the first primary partition that is marked as bootable and checks whether there is a short magic hex-code on that partition. If the hex-code is found the rest (the bootstrap loader) is executed by the bios. Here begins the booting of the operating system - may it be DOS, Windows, Linux
Django Bot
>> Links - python - Best way to paginate a raw SQL query in a Django REST ListAPI view
Ani
can anyone please help me with a question I posted on stackover flow a few days ago?
Ani
paste this after stackoverflow's home url
Ani
questions/52054246/how-to-add-a-foreign-key-from-multiple-options-available-in-model-for-that-key-i
R
can anyone please help me with a question I posted on stackover flow a few days ago?
Not sure to understand the question, but why you using TemplateView instead of FormView?
R
https://docs.djangoproject.com/es/2.1/topics/class-based-views/generic-editing/
Django Bot
>> Links - Django Software Foundation | Django - Twitter
Django Bot
>> Links - 7 Vue.js Backends Compared
Anonymous
hi everyone
Anonymous
do someone know any telegram group for python asyncio?
Hélio
Dears, I'm trying to put gunicorn like a service. The the gunicorn.service file at /etc/systemd/system recommended by Digital Ocean is : [Unit] Description=gunicorn daemon After=network.target [Service] User=sammy Group=www-data WorkingDirectory=/home/sammy/myproject ExecStart=/home/sammy/myproject/myprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/sammy/myproject/myproject.sock myproject.wsgi:application [Install] WantedBy=multi-user.target But, I would like to know if this is possible at —bind [Unit] Description=gunicorn daemon After=network.target [Service] User=sammy Group=www-data WorkingDirectory=/home/sammy/myproject ExecStart=/home/sammy/myproject/myprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind 0.0.0.0:80 myproject.wsgi:application [Install] WantedBy=multi-user.target
Sanjay Krishnan
Which are the versions of django and python supported by django-cms?
Hélio
django = 2.1
Hélio
python 3.6
Akash
Excuse me! What is Django cms?
Cms built over django for easy building websites. Say a forked version of django with customisations
Django Bot
>> Links - Django import / export
Hélio
Guys, I solved. It's just that I have to use nginx or no way, XD
Hélio
I was trying to expose gunicorn direct to internet. It seems that on daemon mode, it doesn't like it :D
Василий
I was trying to expose gunicorn direct to internet. It seems that on daemon mode, it doesn't like it :D
Dont use any webserver except normal webserver (like nginx or apache) to expose your app direct to internet :)
Hélio
yeah, I read about it. Thanks for advice me
Hélio
👍
Василий
If you want expose app to secure network you may use standart django web server with runserver 0.0.0.0
Anonymous
🤔
Hélio
guys, one question. I created a modelform. When I submit, django claims about unique constraints. It seems like the page sending the same data twice.
Hélio
does anyone know why?
inchidi
form.save() already store the passed form data instance to db. thats why