Re: Model cache problem

2015-06-25 Thread dragon
On 06/25/2015 09:49 PM, Vijay Khemlani wrote: Are you using a ModelChoiceField? https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield Or a normal ChoiceField setting the choices manually? I am using normal Chice field and yes i'm setting up manually when I call the form.

new installations tryout problem

2015-06-25 Thread Elim Qiu
Installed django recently, followed the django tutorial pdf to some where arround page 20. But got problems... It's on ubuntu 14.04, I have ipython installed and the following command some how brings up ipython. And it will raise exception for command Question.objects.filter(question_text__sta

Re: ValueError: Dependency on unknown app

2015-06-25 Thread James Schneider
Have you tried cw_auth.models.AppUser as the value for AUTH_USER_MODEL? -James On Jun 25, 2015 12:45 PM, "MamEshe5minPlz" wrote: > I'm trying to use custom User model. Created app named "cw_auth", created > "AppUser" model in it, added module to INSTALLED_APPS and added > > AUTH_USER_MODEL = 'cw

Re: Atomic block termination question

2015-06-25 Thread Mike Dewhirst
Carl Thank you very much. Great overview. Confidence boosting. Mike On 26/06/2015 2:57 AM, Carl Meyer wrote: Hi Mike, On 06/25/2015 01:53 AM, Mike Dewhirst wrote: On 25/06/2015 2:34 AM, Carl Meyer wrote: On 06/24/2015 02:16 AM, Mike Dewhirst wrote: On 24/06/2015 4:43 PM, Mike Dewhirst wrot

Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-25 Thread henri
I'm using a custom user model and a custom UserAdmin. I try do overwrite the 'get_fieldsets' method to change some fields and hide some others, bud django admin still uses the 'get_fieldsets' method from django.contrib.auth.admin.UserAdmin. My CustomUserAdmin Class: from django.contrib.auth.ad

Re: DateField(blank=True), null?

2015-06-25 Thread Siddharth Tanna
yes,its done On Fri, Jun 26, 2015 at 4:55 AM, Mario Gudelj wrote: > Did you migrate? You don't have to manually edit your schema. Use > migrations or south if you're using 1.6 or below. > On 26 Jun 2015 8:41 am, "Sidh Tanna" wrote: > >> Its not work dear, ou have any other solution? >> >> On Mo

Re: DateField(blank=True), null?

2015-06-25 Thread Mario Gudelj
Did you migrate? You don't have to manually edit your schema. Use migrations or south if you're using 1.6 or below. On 26 Jun 2015 8:41 am, "Sidh Tanna" wrote: > Its not work dear, ou have any other solution? > > On Monday, August 14, 2006 at 12:09:53 PM UTC+5:30, Bryan Chow wrote: >> >> Hi Ray,

Re: DateField(blank=True), null?

2015-06-25 Thread Sidh Tanna
Its not work dear, ou have any other solution? On Monday, August 14, 2006 at 12:09:53 PM UTC+5:30, Bryan Chow wrote: > > Hi Ray, > > You can set null=True on your DateField to allow null values in the > database. Foe example: > > thedate = models.DateField(null=True, blank=True) > > Cheers, >

Re: How To Activate Django Server.

2015-06-25 Thread Aaron C. de Bruyn
Steve, You don't appear to be in the same folder as manage.py. You need to change to the directory that holds your project files. -A On Thu, Jun 25, 2015 at 1:35 PM, Steve Burrus wrote: > No i am sorry but python manage.py runserver doesn't work! I first tried to > run it in a newly created vi

Re: How To Activate Django Server.

2015-06-25 Thread Steve Burrus
No i am sorry but python manage.py runserver doesn't work! I first tried to run it in a newly created virtual environment, it failed. so I just tried to run it in the Desktop folder but it still failed. I remember a command which had in it "django-admin.py" that I need to type right? "C:\Users\St

Re: Model cache problem

2015-06-25 Thread Vijay Khemlani
Are you using a ModelChoiceField? https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield Or a normal ChoiceField setting the choices manually? On Thu, Jun 25, 2015 at 11:28 AM, dragon wrote: > Hi! > > I have a form with a choice field. I fill it from a model let's name it > A

Django default transaction behaviour

2015-06-25 Thread Greg Kempe
Hello, Django's default handling of database transactions (ATOMIC_REQUEST=False) surprised me and I was hoping to understand the motivation behind it, and perhaps offer the suggestion that ATOMIC_REQUEST should be True by default. Non-atomic requests as a default violates, in my view, the princ

Re: How To Activate Django Server.

2015-06-25 Thread ybdragon
On 06/25/15 18:07, Steve Burrus wrote: > I am sorry that I hjave to ask about this, since I was recently able > to do it, but I have to ask how do I go about going from successfully > creating a new virtual environment to then being able to connect to > the Django server? I have seen countless vide

ValueError: Dependency on unknown app

2015-06-25 Thread MamEshe5minPlz
I'm trying to use custom User model. Created app named "cw_auth", created "AppUser" model in it, added module to INSTALLED_APPS and added AUTH_USER_MODEL = 'cw_auth.AppUser' to settings.py file. But when I'm trying to perform ./manage.py makemigrations cw_auth I'm getting errors Traceback (most

Model cache problem

2015-06-25 Thread dragon
Hi! I have a form with a choice field. I fill it from a model let's name it Apples. And when I delete a row from Apples model the choice field includes the deleted Apple after page reloading. I use this Apple choice form another page and on that page there's the deleted Apple row too. When I

Re: Implement a instant saving on edit form

2015-06-25 Thread Karim
On Thu, Jun 25, 2015 at 3:16 PM, Karim wrote: > Hello everyone, I had to implement automatic saving on the various edit > forms on the webapp I'm working on. The purpose is (I guess) to avoid lost > of data if the user move from the edit page without saving first. > ​I found this: http://www.sma

Re: what is the alternative to SiteProfileNotAvailable in django?

2015-06-25 Thread Tim Graham
I don't think SiteProfileNotAvailable is part of Django. Can you clarify what deprecation you are referring to? https://docs.djangoproject.com/en/1.8/releases/1.8/#features-deprecated-in-1-8 If it's a deprecation in django-profiles itself, you might have more luck asking for help in that projec

what is the alternative to SiteProfileNotAvailable in django?

2015-06-25 Thread akshat
I am using Django-profiles 3rd party app for maintaining user profiles. Django-profiles use *SiteProfileNotAvailable* incase 'settings.AUTH_PROFILE_MODULE' is not defined in settings.py. But *SiteProfileNotAvailable* is deprecated in Django 1.8. So what is the alternative to SiteProfileNotAvaila

what is the alternative to SiteProfileNotAvailable in django?

2015-06-25 Thread akshat
I am using Django-profiles 3rd party app for maintaining user profiles. Django-profiles use *SiteProfileNotAvailable* incase 'settings.AUTH_PROFILE_MODULE' is not defined in settings.py. But *SiteProfileNotAvailable* is deprecated in Django 1.8. So what is the alternative to SiteProfileNotAvaila

what is the alternative to SiteProfileNotAvailable in django?

2015-06-25 Thread akshat
I am using Django-profiles 3rd party app for maintaining user profiles. Django-profiles use *SiteProfileNotAvailable* incase 'settings.AUTH_PROFILE_MODULE' is not defined in settings.py. But *SiteProfileNotAvailable* is deprecated in Django 1.8. So what is the alternative to SiteProfileNotAvaila

Re: Atomic block termination question

2015-06-25 Thread Carl Meyer
Hi Mike, On 06/25/2015 01:53 AM, Mike Dewhirst wrote: > On 25/06/2015 2:34 AM, Carl Meyer wrote: >> On 06/24/2015 02:16 AM, Mike Dewhirst wrote: >>> On 24/06/2015 4:43 PM, Mike Dewhirst wrote: When saving a model I'm getting a TransactionManagementError - You can't execute queries u

How To Activate Django Server.

2015-06-25 Thread Steve Burrus
I am sorry that I hjave to ask about this, since I was recently able to do it, but I have to ask how do I go about going from successfully creating a new virtual environment to then being able to connect to the Django server? I have seen countless videos, on youtube, on how this is done but I si

Re: can i use sqlite for big project?

2015-06-25 Thread Gagaro
Please refer to the Appropriate Uses For SQLite page: https://www.sqlite.org/whentouse.html On Thursday, 25 June 2015 16:08:32 UTC+2, Arindam sarkar wrote: > > i need to develop a job portal . is there any problem if i use sqlite ? > coz i am having problem to setup mysql or postgresql . plea

Re: can i use sqlite for big project?

2015-06-25 Thread Karim
On Thu, Jun 25, 2015 at 5:08 PM, Arindam sarkar wrote: > i need to develop a job portal . is there any problem if i use sqlite ? > coz i am having problem to setup mysql or postgresql . please help. ​sqlite was not created for big portal. Use postgresql​ -- Karim N. Gorjux -- You received

can i use sqlite for big project?

2015-06-25 Thread Arindam sarkar
i need to develop a job portal . is there any problem if i use sqlite ? coz i am having problem to setup mysql or postgresql . please help. -- Regards, Arindam Contact no. 08732822385 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Error when adding application record for django-rest-framework-social-oauth2

2015-06-25 Thread Daniel Grace
OK, I sussed this. I entered "1" for the user field, the form was then valid and the record saved to the database. -- 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

Error when adding application record for django-rest-framework-social-oauth2

2015-06-25 Thread Daniel Grace
I am following the instructions for django-rest-framework-social-oauth2 at https://pypi.python.org/pypi/django-rest-framework-social-oauth2/0.0.4 When I attempt to add an application record via "Home › Oauth2_Provider › Applications › Add application", I get the error message "Select a valid ch

Implement a instant saving on edit form

2015-06-25 Thread Karim
Hello everyone, I had to implement automatic saving on the various edit forms on the webapp I'm working on. The purpose is (I guess) to avoid lost of data if the user move from the edit page without saving first. I know that is a problem that concern more the client side than the server side, but

Re: how to deploy django 1.8 + python 3.3 on Openshift

2015-06-25 Thread Gergely Polonkai
http://lmgtfy.com/?q=openshift+django+python+3.3 (I didn't put this in the subject to keep the thread intact. Please learn to ask before you do so) On 25 Jun 2015 06:23, "Arindam sarkar" wrote: > > > -- > Regards, > > Arindam > > Contact no. 08732822385 > > > -- > You received this message beca

create form in python or html with excel embedded in it

2015-06-25 Thread mugdha jain
I need to create a web page with django and html which is basically a form and allows filtering like in excel. How can i do it? Help will be really appreciated. Something like in the picture shown. -- You received this message because you are subscribed to the Google Groups "Django users" group

ANN: eGenix mxODBC 3.3.3 - Python ODBC Database Interface

2015-06-25 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Python ODBC Database Interface Version 3.3.3 mxODBC is our commercially supported Python extension providing

Re: Atomic block termination question

2015-06-25 Thread Mike Dewhirst
Carl On 25/06/2015 2:34 AM, Carl Meyer wrote: Hi Mike, On 06/24/2015 02:16 AM, Mike Dewhirst wrote: On 24/06/2015 4:43 PM, Mike Dewhirst wrote: When saving a model I'm getting a TransactionManagementError - You can't execute queries until the end of the 'atomic' block Ticket #21540 seems fai

Re: django oauth2 flow

2015-06-25 Thread Shekar Tippur
Any updates on this please? I am stuck with this issue for quite a while now. -- 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...@googlegr