Beginner problem with sqlite3 db

2018-09-17 Thread Robert Latoszewski
Hi, I'm going through "Writing your first Django app, part 2" link and I have problem with sqlite3 db - I have created database tables with migrate command (got db.sqlite3 file in my project folder) and I would like to

Re: Channels thread count is increasing

2018-09-17 Thread Andrew Godwin
There's a reasonably large threadpool that sync_to_async uses (I think it defaults to number of CPU cores * 5), so you're probably just seeing that. It should stop growing at some point. Andrew On Sat, Sep 15, 2018 at 4:02 PM erkin kabataş wrote: > Hi All, > > I am new to python and django. >

Re: How to override the javascript default editable bootstap values in Django

2018-09-17 Thread Srinivas Gadi
Can someone please help me with this? On Sun, Sep 16, 2018 at 4:07 PM Srinivas Gadi wrote: > am stuck at overriding the default editable bootstrap values in Django > framework javascript HTML page > > In my webpage, it coded as below > > > $.fn.editable.defaults.url = "{% url 'page1'

Re: Signals and Profile Update

2018-09-17 Thread carlos
hello the only thing you can do is compare dates of storage of the information and then check if the current date is greater than the saved date is an update On Mon, Sep 17, 2018 at 10:08 AM 'dtdave' via Django users < django-users@googlegroups.com> wrote: > I have a Custom User Model and a

Signals and Profile Update

2018-09-17 Thread 'dtdave' via Django users
I have a Custom User Model and a separate Profile Model with django all-auth. The following signal creates the profile for the user and then informs the admin that a new user has registered. @receiver(post_save, sender=User) def create_user_profile(sender, **kwargs): '''Create a profile

How to insert setting when user creating?

2018-09-17 Thread Django Lover
Dear Django community, I am stuck in a logical condition where I need your help. 1- I am registering a user using default *Django auth user and social_django library, *I need when user registering it should submit default model value in one more table. Like- model - user(default) model -

Re: Not able to connect mongo DB with django2.1

2018-09-17 Thread Tosin Ayoola
hw fa guyz I'm working on a project that request that i used form wizard subclass to create a view now d issues im getting is that i can't use the subclass to create a url pattern to access the form, so who kinda knw a way around this On Mon, Sep 17, 2018 at 12:16 PM akshat ahuja wrote: > Hey

Not able to connect mongo DB with django2.1

2018-09-17 Thread akshat ahuja
Hey guys, I am a beginner to Django and I am making an application in which I have to connect to MongoDB to retrieve data,, But I am not able to connect to MongoDB, can someone please help me? Regards, Akshat Ahuja -- You received this message because you are subscribed to the Google Groups

Group By Issues with multiple tables

2018-09-17 Thread Pravin Yadav
Hello Friends, I want to use the group by based on "*Itinerary ID*". I hope that *"Values" keywords is using for the "Group By" but when I'm using the **"Values" keywords for group by. then i'm getting the error for fields name.** Like:- fields name:--- **user_id, **primary_image, etc*

Creating urls

2018-09-17 Thread Joel Mathew
I have a project named myappointments, which has two apps, clinic and appointments. As of now, I am using the following urls in clinic.urls: path('newclinic', views.newclinic, name="newclinic"), path('/', views.clinic_home, name="clinic_home"), path('/doctors', views.doctorlist,

Re: Recreate all tables in mysql after dropping the database

2018-09-17 Thread Daniel Roseman
On Monday, 17 September 2018 08:52:32 UTC+1, Joel wrote: > > Thank you. That is how I fixed it yesterday late night after spending > hours on it. > > For anyone else that may find it useful, > I had dropped the tables to fix this. But that ended complaining about > missing tables. Then I

Re: Recreate all tables in mysql after dropping the database

2018-09-17 Thread Joel
Thank you. That is how I fixed it yesterday late night after spending hours on it. For anyone else that may find it useful, I had dropped the tables to fix this. But that ended complaining about missing tables. Then I dropped the database, since all I had was development data. It wouldn't do the

Re: Recreate all tables in mysql after dropping the database

2018-09-17 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Joel, On Sun, Sep 16, 2018 at 10:16:42PM +0530, Joel Mathew wrote: > I tried to fix mysql problems in my database by dropping tables. When that > didnt work, I dropped the database. > I then recreated the database, and tried to run