A new student as join and need your help

2014-04-14 Thread Yannick Morin


Hi everyone,

Let me introduce myself, If NOT interested to learn about me then goto 
question please:

my name is Yannick and I’m a web developer specializing in 
Coldfusion...Pretty sure some of you have no clue what is Coldfusion...Let 
say it is a dead language with probably less than 0.001% of the programming 
community still using it.

I’m here because I felt it was time for me to jump ship and I was looking 
for a new language to learn and because I’m a big fan-boy of Google API and 
their products and I've noticed that Python was one of their official 
language so I took a look at it and right away I saw the light at the end 
of the room.  

Now that I found the language to use for eternity and beyond I needed the 
ship to get me there and Django just felt like the fastest ride to get me 
to my destination.

So with all those decisions made I've went threw the beautiful and so well 
written for newbie tutorial from http://www.tangowithdjango.com/ and now 
I’m ready to start writing my first project.


*QUESTIONS FOR U:*

Before I start my project I just want to make sure I follow the best Coding 
Guidelines and use the best project folder layout structure for the long 
run.

The right project folder layout structure?

I've done some research for choosing the best folder layout structure and I 
found this 
tutorialand
 since no one added comments to it I just wanted to make sure with 
knowledge people that it was a good approach for the long run since it is a 
little different from the proposed Django layout. Also I was looking at 
splitting up my models over multiple files instead of populating one 
models.py file (see pic bellow). This would for me make it easier to 
maintain and more organized then doing CRTL-F all the time.




And for my models





---

So expect to see me here a lot and one day I hope I will be able to give 
back to the community and help the new kids on the block.

Oh yeah and I've already started to do my part in helping the community 
because I got my Django 1.7 Release Tee (http://teespring.com/django17).

Long live Django and thanks to the djancoders (“Ok just made that one up”) 
 for your help.

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/194997e0-343c-4a14-8b58-63f33c4ce7af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-14 Thread Elio Gerson Clímaco Herrera
Thanks to Vernon and Andreas, for your answers,

Yes Andreas my server is running on the same computer as my django server
but I, changed my database settings like this and I, have the same error 
"Database server not found"

DATABASES = {
'default': {
'ENGINE': 'sqlany_django',
'NAME': 'django',
'USER': 'dba',
'PASSWORD': 'sql',
'OPTIONS': {'eng': '2638'},
'HOST': 'localhost',
'PORT': '2638',
}
}

Even I, test with different combinations of database settings like 

DATABASES = {
'default': {
'ENGINE': 'sqlany_django',
'NAME': 'django',
'USER': 'dba',
'PASSWORD': 'sql',
'OPTIONS': {'eng': '2638'},
}
}

So I, get the same error message

Here is complete text about this error, please help me

  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line
399, in execute_from_command_line
utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line
392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
242,
 in run_from_argv
self.execute(*args, **options.__dict__)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
285,
 in execute
output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
415,
 in handle
return self.handle_noargs(**options)
  File 
"C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
, line 57, in handle_noargs
cursor = connection.cursor()
  File "C:\Python27\lib\site-packages\django\db\backends\__init__.py", line 
157,
 in cursor
cursor = self.make_debug_cursor(self._cursor())
  File "C:\Python27\lib\site-packages\sqlany_django\base.py", line 476, in 
_curs
or
self.connection = Database.connect(**kwargs)
  File "C:\Python27\lib\site-packages\sqlanydb.py", line 459, in connect
return Connection(args, kwargs)
  File "C:\Python27\lib\site-packages\sqlanydb.py", line 508, in __init__
self.handleerror(*error)
  File "C:\Python27\lib\site-packages\sqlanydb.py", line 518, in handleerror
eh(self, None, errorclass, errorvalue)
  File "C:\Python27\lib\site-packages\sqlanydb.py", line 340, in 
standardErrorHa
ndler
raise errorclass(errorvalue)
sqlanydb.OperationalError: Database server not found

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a209fa83-a2c8-4d42-9847-6695b5ec0295%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-14 Thread Andreas Kuhne
Just a wild guess here.

Checking your databases dictionary, you have set : 'HOST': 'django'. I am
guessing your server is running on the same computer as your django server?
In that case you should change the line to : 'HOST': 'localhost', or just
delete the line entirely (default is localhost). In your example where you
are successful, you didn't specify a host, and my guess is it defaults to
localhost.

If that is not the case, make sure that the host 'django' is a valid
hostname, something like : django.mydomain.com or dbserver.mydomain.com,
where django or dbserver is the name of your database server and "
mydomain.com" is your domain.

Regards,

Andréas


2014-04-14 20:43 GMT+02:00 Vernon D. Cole :

> You would be best advised to contact whoever supports that driver. Their
> contact information ought to be on their github site. My guess (as a
> maintainer of a different 3rd party Windows database driver) is that they
> have not upgraded to django 1.6 yet. But that's only a wild guess.
>   The other strong possibility is that you have something wrong in your
> DATABASES dictionary, but only someone familiar with that driver would have
> an idea what.
>
>
>
> On Monday, April 14, 2014 1:29:41 AM UTC-4, Elio Gerson Clímaco Herrera
> wrote:
>>
>> Hi everybody...
>>
>>
>>
>> I need connect *django *with *sql anywhere 11 database*, i follow the
>> instructions on the page "SQL Anywhere Django Driver" from github.
>>
>>
>>
>> I created the database with this command
>>
>> C:\>dbinit -z UCA django.db --> (database created successful)
>>
>>
>>
>> I started the Database Server with command
>>
>> C:\>dbsrv11 django.db  --> (database server started successful)
>>
>>
>>
>> I created my project with
>>
>> C:\>django-admin.py startproject mysite (at this point all it's ok)
>>
>>
>>
>> I edit the file mysite/mysite/settings.py and I changed the DATABASES
>> setting with this
>>
>>
>>
>> DATABASES = {
>>
>> 'default': {
>>
>> 'ENGINE': 'sqlany_django',
>>
>> 'NAME': 'django',
>>
>> 'USER': 'dba',
>>
>> 'PASSWORD': 'sql',
>>
>> 'OPTIONS': {'eng': '2638'},
>>
>> 'HOST': 'django',
>>
>> 'PORT': '2638',
>>
>> }
>>
>> }
>>
>>
>>
>> The problem is, when I want sync database using this command
>>
>>
>>
>> c:/mysite>python manage.py syncdb
>>
>>
>>
>>  I get *"Database server not found*" error.
>>
>>
>>
>> Please help me, I don't know how resolve this problem
>>
>>
>>
>> Even I test the connection with a file (test_sqlany.py) this file
>> contents following code
>>
>>
>>
>> import sqlanydb
>>
>> conn = sqlanydb.connect(uid='dba', pwd='sql', eng='django', dbn='django')
>>
>> curs = conn.cursor()
>>
>> curs.execute("select 'Hello, world!'")
>>
>> print "SQL Anywhere says: %s" % curs.fetchone()
>>
>> curs.close()
>>
>> conn.close()
>>
>>
>>
>> I, get get the expected output:
>>
>>
>>
>> c:\>python test_sqlany.py
>>
>> SQL Anywhere says: Hello, world!
>>
>>
>>
>> I have an environment for test with this caracteristics
>>
>> O.S.: Windows XP
>>
>> DB Engine: *SQL Anywhere 11 with EBF 3069*
>>
>> Python 2.7
>>
>> Django 1.6.1
>>
>> Setuptools installed
>>
>> PIP installed
>>
>> sqlanydb installed
>>
>> sqlany-django installed
>>
>>
>>
>> *Sorry my english is very bad :)*
>>
>>
>>
>> *Here is the complete text about this error*
>>
>>
>>
>> Traceback (most recent call last):
>>
>>   File "manage.py", line 10, in 
>>
>> execute_from_command_line(sys.argv)
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line
>>
>> 399, in execute_from_command_line
>>
>> utility.execute()
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py",
>> line
>>
>> 392, in execute
>>
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 242,
>>
>>  in run_from_argv
>>
>> self.execute(*args, **options.__dict__)
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 285,
>>
>>  in execute
>>
>> output = self.handle(*args, **options)
>>
>>   File "C:\Python27\lib\site-packages\django\core\management\base.py",
>> line 415,
>>
>>  in handle
>>
>> return self.handle_noargs(**options)
>>
>>   File "C:\Python27\lib\site-packages\django\core\
>> management\commands\syncdb.py"
>>
>> , line 57, in handle_noargs
>>
>> cursor = connection.cursor()
>>
>>   File "C:\Python27\lib\site-packages\django\db\backends\__init__.py",
>> line 157,
>>
>>  in cursor
>>
>> cursor = self.make_debug_cursor(self._cursor())
>>
>>   File "C:\Python27\lib\site-packages\sqlany_django\base.py", line 476,
>> in _curs
>>
>> or
>>
>> self.connection = Database.connect(**kwargs)
>>
>>   File "C:\Python27\lib\site-packages\sqlanydb.py", line 459, in connect
>>
>> return Connection(args, 

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-14 Thread Vernon D. Cole
You would be best advised to contact whoever supports that driver. Their 
contact information ought to be on their github site. My guess (as a 
maintainer of a different 3rd party Windows database driver) is that they 
have not upgraded to django 1.6 yet. But that's only a wild guess.
  The other strong possibility is that you have something wrong in your 
DATABASES dictionary, but only someone familiar with that driver would have 
an idea what.



On Monday, April 14, 2014 1:29:41 AM UTC-4, Elio Gerson Clímaco Herrera 
wrote:
>
> Hi everybody...
>
>  
>
> I need connect *django *with *sql anywhere 11 database*, i follow the 
> instructions on the page "SQL Anywhere Django Driver" from github.
>
>  
>
> I created the database with this command
>
> C:\>dbinit -z UCA django.db --> (database created successful)
>
>  
>
> I started the Database Server with command
>
> C:\>dbsrv11 django.db  --> (database server started successful)
>
>  
>
> I created my project with
>
> C:\>django-admin.py startproject mysite (at this point all it's ok)
>
>  
>
> I edit the file mysite/mysite/settings.py and I changed the DATABASES 
> setting with this
>
>  
>
> DATABASES = {
>
> 'default': {
>
> 'ENGINE': 'sqlany_django',
>
> 'NAME': 'django',
>
> 'USER': 'dba',
>
> 'PASSWORD': 'sql',
>
> 'OPTIONS': {'eng': '2638'},
>
> 'HOST': 'django',
>
> 'PORT': '2638',
>
> }
>
> }
>
>  
>
> The problem is, when I want sync database using this command
>
>  
>
> c:/mysite>python manage.py syncdb
>
>  
>
>  I get *"Database server not found*" error.
>
>  
>
> Please help me, I don't know how resolve this problem
>
>  
>
> Even I test the connection with a file (test_sqlany.py) this file contents 
> following code
>
>  
>
> import sqlanydb
>
> conn = sqlanydb.connect(uid='dba', pwd='sql', eng='django', dbn='django')
>
> curs = conn.cursor()
>
> curs.execute("select 'Hello, world!'")
>
> print "SQL Anywhere says: %s" % curs.fetchone()
>
> curs.close()
>
> conn.close()
>
>  
>
> I, get get the expected output:
>
>  
>
> c:\>python test_sqlany.py
>
> SQL Anywhere says: Hello, world!
>
>  
>
> I have an environment for test with this caracteristics
>
> O.S.: Windows XP
>
> DB Engine: *SQL Anywhere 11 with EBF 3069*
>
> Python 2.7
>
> Django 1.6.1
>
> Setuptools installed
>
> PIP installed
>
> sqlanydb installed
>
> sqlany-django installed
>
>  
>
> *Sorry my english is very bad :)*
>
>  
>
> *Here is the complete text about this error*
>
>  
>
> Traceback (most recent call last):
>
>   File "manage.py", line 10, in 
>
> execute_from_command_line(sys.argv)
>
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
> line 
>
> 399, in execute_from_command_line
>
> utility.execute()
>
>   File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
> line
>
> 392, in execute
>
> self.fetch_command(subcommand).run_from_argv(self.argv)
>
>   File "C:\Python27\lib\site-packages\django\core\management\base.py", 
> line 242,
>
>  in run_from_argv
>
> self.execute(*args, **options.__dict__)
>
>   File "C:\Python27\lib\site-packages\django\core\management\base.py", 
> line 285,
>
>  in execute
>
> output = self.handle(*args, **options)
>
>   File "C:\Python27\lib\site-packages\django\core\management\base.py", 
> line 415,
>
>  in handle
>
> return self.handle_noargs(**options)
>
>   File 
> "C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
>
> , line 57, in handle_noargs
>
> cursor = connection.cursor()
>
>   File "C:\Python27\lib\site-packages\django\db\backends\__init__.py", 
> line 157,
>
>  in cursor
>
> cursor = self.make_debug_cursor(self._cursor())
>
>   File "C:\Python27\lib\site-packages\sqlany_django\base.py", line 476, in 
> _curs
>
> or
>
> self.connection = Database.connect(**kwargs)
>
>   File "C:\Python27\lib\site-packages\sqlanydb.py", line 459, in connect
>
> return Connection(args, kwargs)
>
>   File "C:\Python27\lib\site-packages\sqlanydb.py", line 508, in __init__
>
> self.handleerror(*error)
>
>   File "C:\Python27\lib\site-packages\sqlanydb.py", line 518, in 
> handleerror
>
> eh(self, None, errorclass, errorvalue)
>
>   File "C:\Python27\lib\site-packages\sqlanydb.py", line 340, in 
> standardErrorHa
>
> ndler
>
> raise errorclass(errorvalue)
>
> sqlanydb.OperationalError: *Database server not found*
>
>  
>
>  
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 

Re: error in using socialregistration

2014-04-14 Thread rafiee.nima
I'v fixed the problem by adding

SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer'
to setting.py 


On Monday, April 14, 2014 8:41:10 PM UTC+4:30, rafiee.nima wrote:
>
> Hi 
> Im using django socialregistration i configure everything step by step 
> using  socialregistration doc. i also add sit_id .but i got this error : 
>
>
> Exception Type: TypeError at /social/linkedin/redirect/
> Exception Value:  object at 0xb49c97ec> is not JSON serializable
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f6d30ada-04e6-4a9b-9ea1-8179b735ce43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: recommended fcgi way for django 1.6 on windows? Problems with https

2014-04-14 Thread Andre Terra
I've used nginx in windows with great results. In fact, I even compiled it
on cygwin with additional modules (namely, to track large file uploads) and
everything worked smoothly.


Cheers,
AT


On Mon, Apr 14, 2014 at 1:48 PM, anton  wrote:

> Hi
>
> I did a test with modwsgi on windows with apache,
> http and https work now both.
>
> Thanks :-)
>
> *BUT*: the modwsgi does not support Daemonmode on windows,
> which means that I need to restart the whole apache Server every time
> I update my django app.
>
> For a real productionserver its a nightmare, if there are different apps
> hosted.
>
> Perhaps I find a solution .. :-(
>
> Anton
>
>
> --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/lih3hn%24sn4%241%40ger.gmane.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKBiv3wUwKirCQk8NnpoPjuVwgH87_SW%2BOur2ML%2BqXx1UW%3D7FQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: recommended fcgi way for django 1.6 on windows? Problems with https

2014-04-14 Thread anton
Hi

I did a test with modwsgi on windows with apache,
http and https work now both.

Thanks :-)

*BUT*: the modwsgi does not support Daemonmode on windows,
which means that I need to restart the whole apache Server every time
I update my django app.

For a real productionserver its a nightmare, if there are different apps
hosted.

Perhaps I find a solution .. :-(

Anton


-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/lih3hn%24sn4%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.


error in using socialregistration

2014-04-14 Thread rafiee.nima
Hi 
Im using django socialregistration i configure everything step by step 
using  socialregistration doc. i also add sit_id .but i got this error : 


Exception Type: TypeError at /social/linkedin/redirect/
Exception Value:  is not JSON serializable

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b7a66432-cd3c-47ae-a83e-a203f87d03e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in AUTHENTICATION using socialregistration

2014-04-14 Thread rafiee.nima
did you add facebook namespace in your main project urls.py  ? 

On Friday, May 17, 2013 11:20:34 AM UTC+4:30, Avnesh Shakya wrote:
>
> hi,
>I am getting error -  
>   
>   NoReverseMatch at /login/ 
>
>u'facebook' is not a registered namespace inside 'socialregistration'
>
> when I am clicking on login link. I have installed all required things using 
> documantation - 
>
> http://django-socialregistration.readthedocs.org/en/latest/contrib/facebook.html
> but it's showing error.
> Please help me... I am unable to find this error.
>
> settings.py- i have added-
> INSTALLED_APPS = (
> 'apps.socialregistration',
> 'apps.socialregistration.contrib.facebook',
> )
>
> and
> AUTHENTICATION_BACKENDS = (
> 'django.contrib.auth.backends.ModelBackend',
> 'apps.socialregistration.contrib.facebook.auth.FacebookAuth',
> )
>
> FACEBOOK_APP_ID = '278691145597349'
> FACEBOOK_SECRET_KEY = '359ed87e4cc3b3cdf2e567f7ab043d8c'
>
> and in login.html page
> i have added-
> {% load facebook %}
> {% facebook_button %}
>
> thanks in advance.
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/da1bb382-fba2-4412-a0a6-e342e902fa5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Autoupdate

2014-04-14 Thread Saransh Mehta
Can you provide me with some links on how to do that?

On Monday, April 14, 2014 5:59:24 PM UTC+5:30, Saransh Mehta wrote:
>
> I want some data to autoupdate on my homepage as more entries come into 
> the database. It is more or less like the news feed feature of Facebook.
> How do we do that?
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/362a62f1-b417-44ca-8c7f-15a5023c8651%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django-tables2 - Mix queryset and non-queryset data in table

2014-04-14 Thread Max Demars
Hi!

I would like to create a table via the Table.Meta.model with some columns 
that are non-queryset data. I manage to populate those columns manually in 
the view (see below), but it's impossible to sort the table with those 
columns: Cannot resolve keyword u'name' into field.

What is the proper way to mix queryset and non-queryset data in the same 
table?

models.py:

class WMS(models.Model):
alias = models.SlugField(max_length=50)
date_created = models.DateTimeField(auto_now_add=True)
date_updated = models.DateTimeField(auto_now=True)
url = models.URLField()

forms.py:

class WMSListTable(tables.Table):
alias = tables.LinkColumn('editWMS', args=[A('pk')])
name = tables.Column()
type = tables.Column()
version = tables.Column()
valid = tables.BooleanColumn()

class Meta:
model = WMS
fields = ('alias', 'url', 'date_created', 'date_updated')

views.py:

from owslib.wms import WebMapService

def listWMS(request):
wms_list = WMS.objects.all()
for wms in wms_list:
try:
instance = WebMapService(wms.url)
wms.name = instance.identification.title
wms.type = instance.identification.type
wms.version = instance.identification.version
wms.valid = True
except:
wms.valid = False

wms_table = WMSListTable(wms_list)
RequestConfig(request).configure(wms_table)
return render(request,"basqui/manage_layer_wms_list.html", 
{'wms_list':wms_table},context_instance=RequestContext(request))


Thanks a lot!
-Max Demars


-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f351d25c-67f3-4f8e-b837-cf033c428ee0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: If use Template api , then it has Error... what is the problem?

2014-04-14 Thread Alex Chiaranda
Hi,

> ImportError: No module named templeates

check your imports, it seems that you misspelled templates

Best wishes



On Saturday, April 12, 2014 7:45:16 PM UTC-3, siho park wrote:
>
> - python 2.7, django 1.5
>
> study to django on Google App Engine.
> if i use *Template("It is now {{ current_date 
> }}.")  *then.. has error like below of my code..
>
> What is the problem?
>
>
> -- source 
>
> def current_datetime(request):  
> now = datetime.datetime.now()  
> t = Template("It is now {{ current_date 
> }}.")  
> html = t.render(Context({'current_date': now}))  
> return HttpResponse(html)
>
>
>
>
>
>
>
>
>
>
> -- Error log 
>
> Traceback (most recent call last):
>
>   File "C:\Google\google_appengine\google\appengine\runtime\wsgi.py", line 
> 266, in Handle
>
> result = handler(dict(self._environ), self._StartResponse)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\core\handlers\wsgi.py", 
> line 255, in __call__
>
> response = self.get_response(request)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\core\handlers\base.py", 
> line 178, in get_response
>
> response = self.handle_uncaught_exception(request, resolver, 
> sys.exc_info())
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\core\handlers\base.py", 
> line 217, in handle_uncaught_exception
>
> return debug.technical_500_response(request, *exc_info)
>
>   File "C:\Google\google_appengine\lib\django-1.5\django\views\debug.py", 
> line 69, in technical_500_response
>
> html = reporter.get_traceback_html()
>
>   File "C:\Google\google_appengine\lib\django-1.5\django\views\debug.py", 
> line 298, in get_traceback_html
>
> return t.render(c)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", line 
> 140, in render
>
> return self._render(context)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", line 
> 134, in _render
>
> return self.nodelist.render(context)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", line 
> 830, in render
>
> bit = self.render_node(node, context)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\debug.py", line 
> 74, in render_node
>
> return node.render(context)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\debug.py", line 
> 84, in render
>
> output = self.filter_expression.resolve(context)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", line 
> 606, in resolve
>
> new_obj = func(obj, *arg_vals)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\template\defaultfilters.py",
>  
> line 715, in date
>
> return format(value, arg)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
> line 312, in format
>
> return df.format(format_string)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
> line 35, in format
>
> pieces.append(force_text(getattr(self, piece)()))
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
> line 216, in r
>
> return self.format('D, j M Y H:i:s O')
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
> line 35, in format
>
> pieces.append(force_text(getattr(self, piece)()))
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\encoding.py", line 
> 99, in force_text
>
> s = s.__unicode__()
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\functional.py", 
> line 132, in __text_cast
>
> return func(*self.__args, **self.__kw)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\translation\__init__.py",
>  
> line 71, in ugettext
>
> return _trans.ugettext(message)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
>  
> line 276, in ugettext
>
> return do_translate(message, 'ugettext')
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
>  
> line 258, in do_translate
>
> _default = translation(settings.LANGUAGE_CODE)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
>  
> line 172, in translation
>
> default_translation = _fetch(settings.LANGUAGE_CODE)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
>  
> line 154, in _fetch
>
> app = import_module(appname)
>
>   File 
> "C:\Google\google_appengine\lib\django-1.5\django\utils\importlib.py", line 
> 35, in import_module
>
> __import__(name)
>
> ImportError: No module named templeates
>
> INFO 2014-04-12 08:44:48,739 module.py:621] default: "GET 
> /admins/time/ HTTP/1.1" 500 -
>
>

-- 
You received this message because you 

If use Template api , then it has Error... what is the problem?

2014-04-14 Thread siho park
- python 2.7, django 1.5

study to django on Google App Engine.
if i use *Template("It is now {{ current_date 
}}.")  *then.. has error like below of my code..

What is the problem?


-- source 

def current_datetime(request):  
now = datetime.datetime.now()  
t = Template("It is now {{ current_date }}.") 
 
html = t.render(Context({'current_date': now}))  
return HttpResponse(html)










-- Error log 

Traceback (most recent call last):

  File "C:\Google\google_appengine\google\appengine\runtime\wsgi.py", line 
266, in Handle

result = handler(dict(self._environ), self._StartResponse)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\core\handlers\wsgi.py", 
line 255, in __call__

response = self.get_response(request)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\core\handlers\base.py", 
line 178, in get_response

response = self.handle_uncaught_exception(request, resolver, 
sys.exc_info())

  File 
"C:\Google\google_appengine\lib\django-1.5\django\core\handlers\base.py", 
line 217, in handle_uncaught_exception

return debug.technical_500_response(request, *exc_info)

  File "C:\Google\google_appengine\lib\django-1.5\django\views\debug.py", 
line 69, in technical_500_response

html = reporter.get_traceback_html()

  File "C:\Google\google_appengine\lib\django-1.5\django\views\debug.py", 
line 298, in get_traceback_html

return t.render(c)

  File "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", 
line 140, in render

return self._render(context)

  File "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", 
line 134, in _render

return self.nodelist.render(context)

  File "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", 
line 830, in render

bit = self.render_node(node, context)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\template\debug.py", line 
74, in render_node

return node.render(context)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\template\debug.py", line 
84, in render

output = self.filter_expression.resolve(context)

  File "C:\Google\google_appengine\lib\django-1.5\django\template\base.py", 
line 606, in resolve

new_obj = func(obj, *arg_vals)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\template\defaultfilters.py", 
line 715, in date

return format(value, arg)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
line 312, in format

return df.format(format_string)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
line 35, in format

pieces.append(force_text(getattr(self, piece)()))

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
line 216, in r

return self.format('D, j M Y H:i:s O')

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\dateformat.py", 
line 35, in format

pieces.append(force_text(getattr(self, piece)()))

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\encoding.py", line 
99, in force_text

s = s.__unicode__()

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\functional.py", 
line 132, in __text_cast

return func(*self.__args, **self.__kw)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\translation\__init__.py",
 
line 71, in ugettext

return _trans.ugettext(message)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
 
line 276, in ugettext

return do_translate(message, 'ugettext')

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
 
line 258, in do_translate

_default = translation(settings.LANGUAGE_CODE)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
 
line 172, in translation

default_translation = _fetch(settings.LANGUAGE_CODE)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\translation\trans_real.py",
 
line 154, in _fetch

app = import_module(appname)

  File 
"C:\Google\google_appengine\lib\django-1.5\django\utils\importlib.py", line 
35, in import_module

__import__(name)

ImportError: No module named templeates

INFO 2014-04-12 08:44:48,739 module.py:621] default: "GET /admins/time/ 
HTTP/1.1" 500 -

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c78e4c46-56a3-4787-a86b-487ec38525f3%40googlegroups.com.
For more options, visit 

I can't connect Django with SQL Anywhere 11 Database

2014-04-14 Thread Elio Gerson Clímaco Herrera


Hi everybody...

 

I need connect *django *with *sql anywhere 11 database*, i follow the 
instructions on the page "SQL Anywhere Django Driver" from github.

 

I created the database with this command

C:\>dbinit -z UCA django.db --> (database created successful)

 

I started the Database Server with command

C:\>dbsrv11 django.db  --> (database server started successful)

 

I created my project with

C:\>django-admin.py startproject mysite (at this point all it's ok)

 

I edit the file mysite/mysite/settings.py and I changed the DATABASES 
setting with this

 

DATABASES = {

'default': {

'ENGINE': 'sqlany_django',

'NAME': 'django',

'USER': 'dba',

'PASSWORD': 'sql',

'OPTIONS': {'eng': '2638'},

'HOST': 'django',

'PORT': '2638',

}

}

 

The problem is, when I want sync database using this command

 

c:/mysite>python manage.py syncdb

 

 I get *"Database server not found*" error.

 

Please help me, I don't know how resolve this problem

 

Even I test the connection with a file (test_sqlany.py) this file contents 
following code

 

import sqlanydb

conn = sqlanydb.connect(uid='dba', pwd='sql', eng='django', dbn='django')

curs = conn.cursor()

curs.execute("select 'Hello, world!'")

print "SQL Anywhere says: %s" % curs.fetchone()

curs.close()

conn.close()

 

I, get get the expected output:

 

c:\>python test_sqlany.py

SQL Anywhere says: Hello, world!

 

I have an environment for test with this caracteristics

O.S.: Windows XP

DB Engine: *SQL Anywhere 11 with EBF 3069*

Python 2.7

Django 1.6.1

Setuptools installed

PIP installed

sqlanydb installed

sqlany-django installed

 

*Sorry my english is very bad :)*

 

*Here is the complete text about this error*

 

Traceback (most recent call last):

  File "manage.py", line 10, in 

execute_from_command_line(sys.argv)

  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line 

399, in execute_from_command_line

utility.execute()

  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", 
line

392, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
242,

 in run_from_argv

self.execute(*args, **options.__dict__)

  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
285,

 in execute

output = self.handle(*args, **options)

  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 
415,

 in handle

return self.handle_noargs(**options)

  File 
"C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"

, line 57, in handle_noargs

cursor = connection.cursor()

  File "C:\Python27\lib\site-packages\django\db\backends\__init__.py", line 
157,

 in cursor

cursor = self.make_debug_cursor(self._cursor())

  File "C:\Python27\lib\site-packages\sqlany_django\base.py", line 476, in 
_curs

or

self.connection = Database.connect(**kwargs)

  File "C:\Python27\lib\site-packages\sqlanydb.py", line 459, in connect

return Connection(args, kwargs)

  File "C:\Python27\lib\site-packages\sqlanydb.py", line 508, in __init__

self.handleerror(*error)

  File "C:\Python27\lib\site-packages\sqlanydb.py", line 518, in handleerror

eh(self, None, errorclass, errorvalue)

  File "C:\Python27\lib\site-packages\sqlanydb.py", line 340, in 
standardErrorHa

ndler

raise errorclass(errorvalue)

sqlanydb.OperationalError: *Database server not found*

 

 

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/802549f8-586d-4f6e-88e2-b05d230618b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Autoupdate

2014-04-14 Thread François Schiettecatte
Hi

You will need to either use  in the  
section of your html (ugly) or use javascript to poll the server for new data 
on a regular interval.

François

On Apr 14, 2014, at 8:29 AM, Saransh Mehta  wrote:

> I want some data to autoupdate on my homepage as more entries come into the 
> database. It is more or less like the news feed feature of Facebook.
> How do we do that?
> 
> 
> -- 
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/736ef367-3ca0-456b-8c8e-3f792946dca4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re:Autoupdate

2014-04-14 Thread Kakar Nyori
Ajax is the way to go. Or else, web sockets.
On Apr 14, 2014 5:59 PM, "Saransh Mehta"  wrote:

> I want some data to autoupdate on my homepage as more entries come into
> the database. It is more or less like the news feed feature of Facebook.
> How do we do that?
>
>  --
> 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 email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/736ef367-3ca0-456b-8c8e-3f792946dca4%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B8okoLaCnGSf7Zd8RQK_Wd8bC3jTWPaP8HUU%3DpmutJTcn%2BS8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Autoupdate

2014-04-14 Thread Saransh Mehta
I want some data to autoupdate on my homepage as more entries come into the 
database. It is more or less like the news feed feature of Facebook.
How do we do that?

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/736ef367-3ca0-456b-8c8e-3f792946dca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Analysis of csv data

2014-04-14 Thread Saransh Mehta
Thank you.!

On Thursday, April 10, 2014 4:13:26 PM UTC+5:30, Saransh Mehta wrote:
>
> I need to analyze the incoming data from the csv file and present it to 
> the user in the best possible way?
> What tools do i need to use for analyzing the csv and drawing graphs etc 
> out of the csv?
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39e4fd42-47bc-4dbb-b4ca-50a96abf9de1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: validate answers from a detail view

2014-04-14 Thread Brad Rice
What I am building is an app that the user can come back to to finish
filling out, so I don't want to have too many required fields until right
before they submit the form, I want to check if they forgot anything and
prompt them to fill it out. Now that I think about it, I can probably do
this with javascript on the detail view page. I suppose that is the route I
will take.


On Sun, Apr 13, 2014 at 3:37 PM, Fabio Caritas Barrionuevo da Luz <
bna...@gmail.com> wrote:

> I think this would be facilitated if the FormWizard possessed a
> confirmation step. There is a ticket open on this exact feature
>
> https://code.djangoproject.com/ticket/21644
>
>
>
> Em sábado, 12 de abril de 2014 14h28min01s UTC-3, Brad Rice escreveu:
>
>> I'm using a Class based Generic Detail View to show end users their
>> answers to previous mulit-page forms. How can I use that final detail view
>> to validate the answers? Should I not be using a Detail view or can I
>> somehow do a conditional get to the next view based upon those answers?
>> Right now I just have a link to the next page where they can submit all
>> their answers from the forms. If they haven't filled out a field, I want to
>> take them back to the form they need to go to to fix that. All it does on
>> that final page after the datail is set a true value in the db that they
>> are done updating their application form.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/odM4dnFb8Zg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fff50189-cf9f-4c8f-927d-575f9d38173a%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Brad Rice
bradri...@gmail.com
--
“Be curious. Read widely. Try new things. What people call intelligence
just boils down to curiosity.”
- Aaron Swartz

-- 
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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMqTKp4hRF4%3DZE5LXy%3D%2BLpBJVQRZHR-_TJQ38QmmKMuo9Odh7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


MultiValueDictKeyError in the Admin with m2m inline

2014-04-14 Thread Mike Dewhirst

Does anyone have any answers for this SO problem?

http://stackoverflow.com/questions/21033912/multivaluedictkeyerror-when-editing-inline-admin-object

It is almost the same as my problem which is a many-to-many inline 
rather than a many-to-one. Almost identically, I can add the first 
record inline but get the MultiValueDictKeyError when saving the next one.


If I downgrade from Django 1.6.2 to 1.5.5 the error goes away.

So my workaround is to downgrade. But that will only work while 1.5.5 is 
supported. What info do I need to reveal to throw some light on this.


Thanks

Mike

- - - - - - - - - - - - - - - - - - - - - - - - -

Here is the dev server error and associated traceback ...

Environment:


Request Method: POST
Request URL: http://localhost:8000/admin/company/jurisdiction/1/

Django Version: 1.6.2
Python Version: 2.7.6
Installed Applications:
(u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.sessions',
 u'django.contrib.sites',
 u'django.contrib.messages',
 u'django.contrib.admin',
 u'django.contrib.admindocs',
 u'django.contrib.staticfiles',
 u'common',
 u'company',
 u'workplace',
 u'substance')
Installed Middleware:
(u'django.middleware.cache.UpdateCacheMiddleware',
 u'django.contrib.sessions.middleware.SessionMiddleware',
 u'django.middleware.locale.LocaleMiddleware',
 u'django.middleware.common.CommonMiddleware',
 u'django.middleware.transaction.TransactionMiddleware',
 u'django.middleware.csrf.CsrfViewMiddleware',
 u'django.contrib.auth.middleware.AuthenticationMiddleware',
 u'django.contrib.messages.middleware.MessageMiddleware',
 u'django.middleware.doc.XViewMiddleware',
 u'django.middleware.clickjacking.XFrameOptionsMiddleware',
 u'django.middleware.cache.FetchFromCacheMiddleware')


Traceback:
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\core\handlers\base.py" 
in get_response
  114. response = wrapped_callback(request, 
*callback_args, **callback_kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\contrib\admin\options.py" 
in wrapper
  432. return self.admin_site.admin_view(view)(*args, 
**kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\decorators.py" in 
_wrapped_view

  99. response = view_func(request, *args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\views\decorators\cache.py" 
in _wrapped_view_func

  52. response = view_func(request, *args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\contrib\admin\sites.py" 
in inner

  198. return view(request, *args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\decorators.py" in 
_wrapper

  29. return bound_func(*args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\decorators.py" in 
_wrapped_view

  99. response = view_func(request, *args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\decorators.py" in 
bound_func

  25. return func(self, *args2, **kwargs2)
File "C:\Users\mike\env\xxdx\lib\site-packages\django\db\transaction.py" 
in inner

  339. return func(*args, **kwargs)
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\contrib\admin\options.py" 
in change_view

  1229. if all_valid(formsets) and form_validated:
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\formsets.py" 
in all_valid

  415. if not formset.is_valid():
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\formsets.py" 
in is_valid

  292. err = self.errors
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\formsets.py" 
in errors

  267. self.full_clean()
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\formsets.py" 
in full_clean

  314. form = self.forms[i]
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\functional.py" in 
__get__
  49. res = instance.__dict__[self.func.__name__] = 
self.func(instance)
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\formsets.py" 
in forms
  133. forms = [self._construct_form(i) for i in 
xrange(self.total_form_count())]
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\models.py" 
in _construct_form
  848. form = super(BaseInlineFormSet, self)._construct_form(i, 
**kwargs)
File "C:\Users\mike\env\xxdx\lib\site-packages\django\forms\models.py" 
in _construct_form

  564. pk = self.data[pk_key]
File 
"C:\Users\mike\env\xxdx\lib\site-packages\django\utils\datastructures.py" in 
__getitem__

  301. raise MultiValueDictKeyError(repr(key))

Exception Type: MultiValueDictKeyError at /admin/company/jurisdiction/1/
Exception Value: "u'jurisdiction_nonhazard_set-0-id'"

--
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