Re: Backward migration failing because of old dropped model

2020-01-20 Thread Bruckner de Villiers
Adrien, Your precise issue eludes me, but I have sometimes come across a similar issue when changing the field types of models.  It appears that you still have a reference somewhere in your code between the form and the model.  I suspect that form.Form.ticket_description is a Django default

Re: Django Lessons

2020-01-20 Thread Eugen Ciur
Thank you. On Monday, January 20, 2020 at 8:38:24 PM UTC+1, Juhana Jauhiainen wrote: > > Hi Eugen, > > Seems like you're of to a good start. > Best of luck! > > -Juhana > > On Mon, Jan 20, 2020 at 2:21 PM Eugen Ciur > wrote: > >> Sure! Thanks! >> I will keep in mind your kind offer. >> >> On

Re: Django bootstrap calendar

2020-01-20 Thread Muhammed Rafi A
Refer this https://simpleisbetterthancomplex.com/tutorial/2019/01/03/how-to-use-date-picker-with-django.html On Mon, Jan 20, 2020 at 8:15 PM Perceval Maturure wrote: > Dear All > Is there anyone who has used the djangobootrstrap calendar in Django 2.xxx > project? > > -- > You received this

Re: Django blog post not linking to detail.html page

2020-01-20 Thread John
OK. I've read further through your code. It looks like it should be:     from blog import views But you will have another problem, unless you have defined PostListView somewhere in views.py other than what you have shown (2.JPG in your original email stops at line 35). I do not have the

Backward migration failing because of old dropped model

2020-01-20 Thread Adrien Agnel
Hi everyone, This is my first post in this group so do not hesitate to ask for some more specific details if this is not enough. Django version is 2.2.9, Python 3.6. I'm facing an error when trying to migrate back the initial migration of a freshly installed new application 'billing'. The

Re: Django Lessons

2020-01-20 Thread Juhana Jauhiainen
Hi Eugen, Seems like you're of to a good start. Best of luck! -Juhana On Mon, Jan 20, 2020 at 2:21 PM Eugen Ciur wrote: > Sure! Thanks! > I will keep in mind your kind offer. > > On Monday, January 20, 2020 at 5:34:09 AM UTC+1, Karan Mittal wrote: >> >> Hey Eugin, >> Your blogs are awesome.

Changing Primary Key from BigAutoField to BigIntegerField not working

2020-01-20 Thread Amiganer
Hello. I'm using postgresql 12 and psycopg2, Python 3.7, Django 3.0.2 (actual stable branch) I declared first my Model with a BigAutoField as Primary_key, later i menchend that the ID field is unique, the id's are predefined and unique. I tried to change the id to a BigIntegerField, done a

Re: Does a custom user model require first_name and last_name fields

2020-01-20 Thread Suraj Thapa FC
Ofcourse you can... It will not create any problem On Mon, 20 Jan 2020, 10:49 pm graeme, wrote: > I have people's first names and last names in another model (because not > all people in the DB are users). Therefore if I store names in the user > model I will duplicate data. > > I think the

Does a custom user model require first_name and last_name fields

2020-01-20 Thread graeme
I have people's first names and last names in another model (because not all people in the DB are users). Therefore if I store names in the user model I will duplicate data. I think the right solution is to remove the first_name and last_name user models from the custom user model. Will this

Re: DjangoEveryDay. My practice website!

2020-01-20 Thread maninder singh Kumar
Did you do Jack's Practice Zone is Django too ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 4:46 PM Jack Lin wrote: > Hi everyone. I'm doing #DjangoEveryday Challenge to myself. > I set a

Re: DjangoEveryDay. My practice website!

2020-01-20 Thread Andrew C.
What is your major? Usually tying in what you know, how you behave, and importantly how you think contributes to a certain type — or even workflow or stack — of learning in CS. On Mon, Jan 20, 2020 at 1:52 AM Jack Lin wrote: > I’m not sure what this gonna be in the future. I think I’m just

Re: Using Daphne without altering nginx config on Google App Engine

2020-01-20 Thread Integr@te System
Hi Rahul, That right you had a few answer on your previous question, more deeper perhap you must config reverse proxy connection (tcp sock (ur question) compatible http) these are for your custom

Re: Create Dashboard for CSV data

2020-01-20 Thread Shivam Dutt Sharma
You may use matplotlib / seasborn. You can also create dataframes from that csv file and opt for creating bar/line/box plots. Best, Shivam On Mon, Jan 20, 2020, 19:29 Santhosh sridhar wrote: > I have a csv file : each line having some inputs and some status. I need > to read this csv file

Django bootstrap calendar

2020-01-20 Thread Perceval Maturure
Dear All Is there anyone who has used the djangobootrstrap calendar in Django 2.xxx project? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Using Daphne without altering nginx config on Google App Engine

2020-01-20 Thread Rahul Arora
Thanks but this is not a valid or useful comparison since GAE is a PaaS service whereas Nginx is a proxy server. In fact GAE itself uses Nginx which is why I'm getting the error from Nginx despite not configuring it myself. Rahul. On Monday, January 20, 2020 at 3:14:35 PM UTC+8, Integr@te

Re: UniqueConstraint rises fields.E310 error because of issue with backward compatibility with unique_together

2020-01-20 Thread Simon Charette
Hello Pavel, This is likely a bug because UniqueConstraint was only recently introduced. Please file a bug report about it. In the mean time you can add this check to your SILENCED_SYSTEM_CHECKS setting to silence it. Best, Simon Le lundi 20 janvier 2020 07:21:26 UTC-5, Pavel Garkin a écrit :

Create Dashboard for CSV data

2020-01-20 Thread Santhosh sridhar
I have a csv file : each line having some inputs and some status. I need to read this csv file and present the data as a dashboard with some charts. I came across to use chart js plugin. Is there any better approach? -- You received this message because you are subscribed to the Google Groups

Re: Using Daphne without altering nginx config on Google App Engine

2020-01-20 Thread Sai Santhosh
Hlelo On Mon, Jan 20, 2020 at 12:44 PM Integr@te System wrote: > Hi Rahu, > > Plz scrutinize more info to differ, combine and select right one for your > case. > > https://stackshare.io/stackups/google-app-engine-vs-nginx > > > On Mon, Jan 20, 2020, 12:08 Rahul Arora wrote: > >> Thanks for

Double hashing in django

2020-01-20 Thread sandeep bisht
hey guys, have you any idea about password double hashing in django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Re: Django Lessons

2020-01-20 Thread Eugen Ciur
Sure! Thanks! I will keep in mind your kind offer. On Monday, January 20, 2020 at 5:34:09 AM UTC+1, Karan Mittal wrote: > > Hey Eugin, > Your blogs are awesome. Let me know if you need some help in writing. I am > a technical writer myself. > I have also written a complete series on Django. >

UniqueConstraint rises fields.E310 error because of issue with backward compatibility with unique_together

2020-01-20 Thread Pavel Garkin
Hi all, I'm trying to create migration with uniqueness of 2 fields: uid, source. *Django 2.2.9* class Users(models.Model): uid = models.CharField(...) source = models.ForeignKey(*...*) class Meta: constraints = [models.UniqueConstraint(fields=['uid', 'source'],

Re: Primary Key

2020-01-20 Thread Kasper Laudrup
Hi Muhammed, On 20/01/2020 11.25, Muhammed Rafi A wrote: |importuuid uuid.uuid4().hex[:8] | |or |fromdjango.utils.crypto importget_random_string get_random_string(8).lower() || def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz'

Re: Primary Key

2020-01-20 Thread Muhammed Rafi A
import uuid uuid.uuid4().hex[:8] or from django.utils.crypto import get_random_string get_random_string(8).lower() def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): On Mon, Jan 20, 2020 at 2:31 PM Soumen Khatua wrote: > Hi

Re: Primary Key

2020-01-20 Thread Soumen Khatua
Thank you for your email On Mon, Jan 20, 2020 at 3:09 PM Kasper Laudrup wrote: > Hi again, > > On 20/01/2020 10.22, Kasper Laudrup wrote: > > > > You want to generate a number between 0 and 1.000.000 that should be > > unique for 10.000.000.000 instances? > > > > I hope you can understand why

Re: Primary Key

2020-01-20 Thread Kasper Laudrup
Hi again, On 20/01/2020 10.22, Kasper Laudrup wrote: You want to generate a number between 0 and 1.000.000 that should be unique for 10.000.000.000 instances? I hope you can understand why that doesn't make any sense. Thinking a bit more about, you don't specify whether it should be in

Re: Primary Key

2020-01-20 Thread Kasper Laudrup
Hi Soumen, On 20/01/2020 10.01, Soumen Khatua wrote: Hi Folks, I want to generate unique 6 digit primary key for django models and I want to generate this for 10 billon users. So guys please could you tell me How I can do that? You want to generate a number between 0 and 1.000.000 that

Re: Primary Key

2020-01-20 Thread Forrest Hartley
I’m not sure a six digit model would support 10bn unique values. On Mon, Jan 20, 2020 at 4:01 AM Soumen Khatua wrote: > Hi Folks, > > I want to generate unique 6 digit primary key for django models and I want > to generate this for 10 billon users. So guys please could you tell me How > I can

Primary Key

2020-01-20 Thread Soumen Khatua
Hi Folks, I want to generate unique 6 digit primary key for django models and I want to generate this for 10 billon users. So guys please could you tell me How I can do that? I tried UUID module but it's generating some big numbers. Thank you Regards, Soumen -- You received this message