Re: Django - Login from Android

2014-08-05 Thread Russell Keith-Magee
Hi Adrian, Developing on a mobile is really no different than dealing with a web browser - the only difference is that *you* need to behave like the browser, instead of the browser handling all the details for you. Think about what a browser is actually doing when you click on links, log in, and

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
what's strange to me is that I can comment out each of the urls and I get basically the same error message. When all three are gone, it complains there are no urls. But I'm stuck on thinking I have a type. background: this was a 1.3 project that I converted to 1.6 today using virtualenv to keep

Re: urlconf problem

2014-08-05 Thread Lachlan Musicman
Bugger - I find that error when left out of the settings or the wsgi points to the wrong settings file. Usually when I'm swapping between envs "settings.dev" "settings.prod" L. On 6 August 2014 09:44, Joel Goldstick wrote: > On Tue, Aug 5, 2014 at 7:15 PM, Lachlan

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
On Tue, Aug 5, 2014 at 7:15 PM, Lachlan Musicman wrote: > Make sure the blog_app is in your settings.py? It is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes',

Re: urlconf problem

2014-08-05 Thread Lachlan Musicman
Make sure the blog_app is in your settings.py? On 6 August 2014 09:00, Joel Goldstick wrote: > I have this: > > from django.conf.urls import patterns, include, url > > from django.contrib import admin, admindocs > import blog_app > > admin.autodiscover() > > patterns =

urlconf problem

2014-08-05 Thread Joel Goldstick
I have this: from django.conf.urls import patterns, include, url from django.contrib import admin, admindocs import blog_app admin.autodiscover() patterns = patterns('', url(r'^admin/doc/', include(admindocs.urls)), url(r'^blog/', include(blog_app.urls)), url(r'^admin/',

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
> if ($('#loading').visible()) { //if #loading not visible show it, > prevent default, set timer to re-submit. > > it *might* actually work if you use this condition instead if($('#loading').is(':visible')) { -- You received this message because you are subscribed to the Google

Re: deploying django

2014-08-05 Thread Jeff Trawick
On Monday, August 4, 2014 6:12:16 PM UTC-4, Adrian Marshall wrote: > > I've went through a few different ways. If your set on using apache, > Configure Apache with Mod-WSGI on a server. > > Here's a Good Tutorial: > http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > I don't understand why this isn't working any suggestions? > This probably seems like a django issue, but it's not. When you submit a form, the current document becomes old news. Browser posts the form data and waits for new

Re: Problme in creating dynamic ChoiceField

2014-08-05 Thread VIPUL BANSAL
Hi Daniel, It worked. Thanks a lot :) On Tuesday, August 5, 2014 7:08:34 PM UTC+5:30, Daniel Roseman wrote: > > On Tuesday, 5 August 2014 13:28:28 UTC+1, VIPUL BANSAL wrote: >> >> Hi, >> >> I trying to create a drop-down which gets repopulated every time we land >> on the page. >> >> If I use

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > $('#queryForm').on("submit", function () {$('#loading').show();}); > > > However it doesn't show the div tag when I click any of my buttons. > According to jquery docs; http://api.jquery.com/submit/

Re: issue with django 1.7 migrations and custom validators

2014-08-05 Thread Collin Anderson
It's a known pain-point of migrations. -- 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. To post to this group, send

Re: Help needed in constructing __in query

2014-08-05 Thread Collin Anderson
AlertTable.objects.filter(pendingalertstable__in=inner_qs) Or I you could even do: AlertTable.objects.filter(pendingalertstable__id__gt=0) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

issue with django 1.7 migrations and custom validators

2014-08-05 Thread Jason Veatch
I have a new django 1.7 project. I'm using sqlite now and moving to postgres soon. My initial migration (http://dpaste.com/2AW2ZEK) has a field with a custom validator (line 20). Now I've deleted that field and the validator function. When I run makemigrations it chokes because that function

Re: Problme in creating dynamic ChoiceField

2014-08-05 Thread Daniel Roseman
On Tuesday, 5 August 2014 13:28:28 UTC+1, VIPUL BANSAL wrote: > > Hi, > > I trying to create a drop-down which gets repopulated every time we land > on the page. > > If I use the following code everything works correctly: > > class DeleteMappingForm(forms.Form) : > subAreaDropDown =

Re: Atomic request

2014-08-05 Thread Erik Cederstrand
Den 05/08/2014 kl. 13.47 skrev Akshay Mukadam : > How to set ATOMIC_REQUEST=TRUE in django In the DATABASES dict in settings.py: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(SITE_ROOT, 'test.db'),

Problme in creating dynamic ChoiceField

2014-08-05 Thread VIPUL BANSAL
Hi, I trying to create a drop-down which gets repopulated every time we land on the page. If I use the following code everything works correctly: class DeleteMappingForm(forms.Form) : subAreaDropDown = forms.ChoiceField(choices = fetchChoices()) def deleteMapping(request): form =

Atomic request

2014-08-05 Thread Akshay Mukadam
How to set ATOMIC_REQUEST=TRUE 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. To post to this group, send