Let's make it green
add add Python3 support for Django :-) http://python3wos.appspot.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: GeoDjango admin and data reprojection
Why you quote your SRID? AFAIK it should be an integer. Post your questing in the GeoDjango mailing list again. On 21 Jan., 13:06, Luca Casagrandewrote: > Hello everybody, > I have simple model defined like this: > class point(models.Model): > geom = models.PointField(srid='3004') > object = models.GeoManager() > > In PostGIS spatial_ref_sys table and in proj's epsg file I changed the > proj string adding the +towgs84 parameters to have a better > reprojection. > In the admin page the point is correctly shown on the map but it's > shifted of about 50m like if the +towgs84 parameters were missing. > I double checked this using a Desktop GIS reprojecting the data from > EPSG:3004 to EPSG:900913 without +towgs84 and the position is the > same. > > I don't understand how Django request a feature to be drawn and which > tools uses for reprojection. > > Thx for your help > Luca -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Updated to Rev. 15257: Udjango-trunk/docs/internals/contributing.txt Udjango-trunk/docs/howto/static-files.txt Udjango-trunk/docs/howto/initial-data.txt Udjango-trunk/docs/topics/http/middleware.txt Udjango-trunk/docs/topics/auth.txt Udjango-trunk/docs/topics/cache.txt Udjango-trunk/docs/topics/db/managers.txt Udjango-trunk/docs/topics/testing.txt Udjango-trunk/docs/releases/1.3.txt Udjango-trunk/docs/ref/models/fields.txt Udjango-trunk/docs/ref/contrib/admin/index.txt Udjango-trunk/docs/ref/contrib/staticfiles.txt Udjango-trunk/docs/ref/django-admin.txt Download at: http://g2007.ch/media/static/uploads/django-15257.pdf Have fun with printing ;-) You should try DIN A5 doubleside, thats quite cool! On 17 Jan., 12:58, Sam Walters <mr.sam...@gmail.com> wrote: > at the very least use mysqldump on you db or a table before you play > with the code. > though depending on what you are doing backup should be even more > structured than ad-hoc sql dumps. > > http://www.thegeekstuff.com/2008/09/backup-and-restore-mysql-database... > > > > > > > > On Mon, Jan 17, 2011 at 10:45 PM, Vovk Donets <donets.vladi...@gmail.com> > wrote: > > > 2011/1/17 ckar...@googlemail.com <ckar...@googlemail.com> > > >> Sry for the wrong url. It's now > >>http://g2007.ch/media/static/uploads/django.pdf > > > Great work, many thanks! > > > -- > > Vovk Donets > > python/django developer > > skype: suunbeeam > > icq: 232490857 > > mail: donets.vladi...@gmail.com > > www: vovk.org.ru > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Sry for the wrong url. It's now http://g2007.ch/media/static/uploads/django.pdf On 13 Jan., 19:53, "ckar...@googlemail.com" <ckar...@googlemail.com> wrote: > Better use this url:http://riesenhirni.de/media/static/uploads/django.pdf > > On 13 Jan., 19:47, "ckar...@googlemail.com" <ckar...@googlemail.com> > wrote: > > > > > > > > > Brand new @http://karrié.de/media/static/uploads/django.pdf > > > On 27 Dez. 2010, 22:58, "ckar...@googlemail.com" > > > <ckar...@googlemail.com> wrote: > > > Current Doc:http://ubuntuone.com/p/Vb6/(Is's1.3.0Beta 1 now [1]) > > > > Changelog according to [2] > > > > [1]http://code.djangoproject.com/changeset/15066/django/trunk?old=14893#... > > > [2] > > > http://code.djangoproject.com/changeset/15066/django/trunk/docs?old=1... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Better use this url: http://riesenhirni.de/media/static/uploads/django.pdf On 13 Jan., 19:47, "ckar...@googlemail.com" <ckar...@googlemail.com> wrote: > Brand new @http://karrié.de/media/static/uploads/django.pdf > > On 27 Dez. 2010, 22:58, "ckar...@googlemail.com" > > > > > > > > <ckar...@googlemail.com> wrote: > > Current Doc:http://ubuntuone.com/p/Vb6/(Is's1.3.0 Beta 1 now [1]) > > > Changelog according to [2] > > > [1]http://code.djangoproject.com/changeset/15066/django/trunk?old=14893#... > > [2] > > http://code.djangoproject.com/changeset/15066/django/trunk/docs?old=1... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Brand new @ http://karrié.de/media/static/uploads/django.pdf On 27 Dez. 2010, 22:58, "ckar...@googlemail.com" <ckar...@googlemail.com> wrote: > Current Doc:http://ubuntuone.com/p/Vb6/(Is's 1.3.0 Beta 1 now [1]) > > Changelog according to [2] > > [1]http://code.djangoproject.com/changeset/15066/django/trunk?old=14893#... > [2] http://code.djangoproject.com/changeset/15066/django/trunk/docs?old=1... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Date Error in Admin Form
Thanks, but USE_I18N = True USE_L10N = True in settings.py resolved my problem :-) On 29 Dez., 18:03, Marcos Moyano <marcosmoy...@gmail.com> wrote: > Take a look at the docs on how to set up valid input formats > > http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#date-... > > Rgds, > Marcos > > On Wed, Dec 29, 2010 at 1:39 PM, ckar...@googlemail.com < > > > > ckar...@googlemail.com> wrote: > > Hi everybody, > > > I'm getting a strange error with a datefield in the django admin. > > > My Settings: > > · TIME_ZONE = 'Europe/Berlin' > > · LANGUAGE_CODE = 'de-DE' > > · USE_I18N = True > > > The according models.py entry: > > zeithorizont = models.DateField(blank=True, null=True) > > > Screenshot (german):http://static.karrie.info/djangoformerror.png > > > I can't figure it out... > > > Thank you, > > Christian > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > Some people, when confronted with a problem, think “I know, I'll use regular > expressions.” Now they have two problems. > > Jamie Zawinski, in comp.emacs.xemacs -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Date Error in Admin Form
Hi everybody, I'm getting a strange error with a datefield in the django admin. My Settings: · TIME_ZONE = 'Europe/Berlin' · LANGUAGE_CODE = 'de-DE' · USE_I18N = True The according models.py entry: zeithorizont = models.DateField(blank=True, null=True) Screenshot (german): http://static.karrie.info/djangoformerror.png I can't figure it out... Thank you, Christian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Current Doc: http://ubuntuone.com/p/Vb6/ (Is's 1.3.0 Beta 1 now [1]) Changelog according to [2] [1] http://code.djangoproject.com/changeset/15066/django/trunk?old=14893#file36 [2] http://code.djangoproject.com/changeset/15066/django/trunk/docs?old=14893_path=django%2Ftrunk%2Fdocs -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Current Doc: http://ubuntuone.com/p/Rmu/ Changelog: Udocs/topics/i18n/internationalization.txt Udocs/releases/1.3.txt Udocs/releases/1.3-alpha-2.txt Udocs/ref/contrib/admin/index.txt Udocs/ref/request-response.txt Udocs/ref/databases.txt -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Of course I will do upgrade the doc. BTW: Latest doc from SVN: http://ubuntuone.com/p/RY1/ On 30 Nov., 07:00, derek <gamesb...@gmail.com> wrote: > Hmm. So you're not planning to upgrade the doc when the final release > is made...?! > > On Nov 25, 4:22 pm, "ckar...@googlemail.com" <ckar...@googlemail.com> > wrote: > > > Okay, please remind me ;-) > > > On 25 Nov., 09:38, derek <gamesb...@gmail.com> wrote: > > > > Please post a link to the PDF when the final release is available. > > > > On Nov 21, 7:38 pm, "ckar...@googlemail.com" <ckar...@googlemail.com> > > > wrote: > > > > > Sry for dublepost. > > > > > For those who don't want to install all the *tex* libraries. Here is > > > > the link:http://ubuntuone.com/p/QFl/ > > > > > Have fun with printing and reading ;-) > > > > > On 21 Nov., 18:00, "ckar...@googlemail.com" <ckar...@googlemail.com> > > > > wrote: > > > > > > Are you interested in the current Django 1.3 Alpha 2 documentation as > > > > > PDF? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Okay, please remind me ;-) On 25 Nov., 09:38, derek <gamesb...@gmail.com> wrote: > Please post a link to the PDF when the final release is available. > > On Nov 21, 7:38 pm, "ckar...@googlemail.com" <ckar...@googlemail.com> > wrote: > > > > > > > > > Sry for dublepost. > > > For those who don't want to install all the *tex* libraries. Here is > > the link:http://ubuntuone.com/p/QFl/ > > > Have fun with printing and reading ;-) > > > On 21 Nov., 18:00, "ckar...@googlemail.com" <ckar...@googlemail.com> > > wrote: > > > > Are you interested in the current Django 1.3 Alpha 2 documentation as > > > PDF? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Current Django 1.3 Alpha 2 Documentation as PDF
Are you interested in the current Django 1.3 Alpha 2 documentation as PDF? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Current Django 1.3 Alpha 2 Documentation as PDF
Sry for dublepost. For those who don't want to install all the *tex* libraries. Here is the link: http://ubuntuone.com/p/QFl/ Have fun with printing and reading ;-) On 21 Nov., 18:00, "ckar...@googlemail.com" <ckar...@googlemail.com> wrote: > Are you interested in the current Django 1.3 Alpha 2 documentation as > PDF? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Howto crypt forms in Django?
Hi Cal, thanks for your informations. Now it's clear. Christian On 1 Nov., 13:27, "Cal Leeming [Simplicity Media Ltd]" <cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Christian, > > Can I just also mention, that relying on encrypted forms (based on a > static key from the server) is not very good practice. > > At the very most, you can rely on it for client side obfuscation, but > don't ever rely on it for security. > > An SSL certificate is almost certainly the way to go if you want to > protect data from being sniffed. > > If you want to protect against CSRF, then see: > > http://docs.djangoproject.com/en/dev/ref/contrib/csrf/ > > Hope this helps. > > Cal > > On 01/11/2010 11:19, ckar...@googlemail.com wrote: > > > Hi everybody, > > > is there a way not to send form data in plain-text format? I've found > > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > > encryption plugin, which encrypts the POST/GET-Data that will be sent > > when you submit a form."). Is there a way to crypt data without using > > SSL? > > > Thanks, Christian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Howto crypt forms in Django?
Okay , thank you all. Christian On 1 Nov., 12:45, Jirka Vejrazkawrote: > > is there a way not to send form data in plain-text format? I've found > > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > > encryption plugin, which encrypts the POST/GET-Data that will be sent > > when you submit a form."). Is there a way to crypt data without using > > SSL? > > Christian, > > any solution similar to jCryption would not add much security to > your forms. Since it does not use challenge-response, anyone who could > obtain the plain-text form data can now obtain encrypted data and the > encryption keys (and the fact that you'd be using something like > jCryption). So, not much security added, only a bit of obfuscation. > > So, you should use SSL if you worry about security. Sorry. > > Cheers > > Jirka -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Howto crypt forms in Django?
No, no SSL, no HTTPS. Just client side and server side decryption/ encryption. On 1 Nov., 12:22, What you get is Not what you see <wygin...@gmail.com> wrote: > Using https connection? > > On Mon, Nov 1, 2010 at 1:19 PM, ckar...@googlemail.com < > > ckar...@googlemail.com> wrote: > > Hi everybody, > > > is there a way not to send form data in plain-text format? I've found > > jCryption for PHP ("In short words jCryption is a javascript HTML-Form > > encryption plugin, which encrypts the POST/GET-Data that will be sent > > when you submit a form."). Is there a way to crypt data without using > > SSL? > > > Thanks, Christian > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Howto crypt forms in Django?
Hi everybody, is there a way not to send form data in plain-text format? I've found jCryption for PHP ("In short words jCryption is a javascript HTML-Form encryption plugin, which encrypts the POST/GET-Data that will be sent when you submit a form."). Is there a way to crypt data without using SSL? Thanks, Christian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: need help: unique_together in both directions
Thank you, I have "solved" this with a custom Form method, that's not very clean, but I works so far. Chris On 29 Aug., 20:23, Matthias Kestenholz <matthias.kestenh...@gmail.com> wrote: > On Sat, Aug 29, 2009 at 7:51 PM, > > ckar...@googlemail.com<ckar...@googlemail.com> wrote: > > > Really no ideas? > > > Chris > > Is there any way you could define a stable ordering for the > SinglePoint model? You could ensure that the "smaller" SinglePoint > gets stored in p1 and the "bigger" SinglePoint in p2 in a custom save > method. > > If that isn't an option, you might want to implement a check in your > save method. I don't know how you could implement a database UNIQUE > index which would reject reversed relationships. > > Matthias > > -- > FeinCMS Django CMS building toolkit:http://spinlock.ch/pub/feincms/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: need help: unique_together in both directions
Really no ideas? Chris On 25 Aug., 21:25, "ckar...@googlemail.com" <ckar...@googlemail.com> wrote: > Hi, > > first, my models: > > class Connection(models.Model): > p1 = models.ForeignKey(SinglePoint, related_name='p1_set', > help_text="Punkt 1") > p2 = models.ForeignKey(SinglePoint, related_name='p2_set', > help_text="Punkt 2") > ... > class Meta: > unique_together = (('p1', 'p2'),('p2','p1')) > > class SinglePoint(models.Model): > name = models.CharField(max_length=100) > ... > > With that code I can create 2 Connections like: > > Connection 1: p1 = A, p2 = B > Connection 2: p1 = B, p2 = A > > But I want to disallow that way, I wish to have just > > Connection 1: p1 = A, p2 = B > OR > Connection 2: p1 = B, p2 = A > > and not both. How is this possible? > > Thank you very much!! > > Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
need help: unique_together in both directions
Hi, first, my models: class Connection(models.Model): p1 = models.ForeignKey(SinglePoint, related_name='p1_set', help_text="Punkt 1") p2 = models.ForeignKey(SinglePoint, related_name='p2_set', help_text="Punkt 2") ... class Meta: unique_together = (('p1', 'p2'),('p2','p1')) class SinglePoint(models.Model): name = models.CharField(max_length=100) ... With that code I can create 2 Connections like: Connection 1: p1 = A, p2 = B Connection 2: p1 = B, p2 = A But I want to disallow that way, I wish to have just Connection 1: p1 = A, p2 = B OR Connection 2: p1 = B, p2 = A and not both. How is this possible? Thank you very much!! Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Retaining POST DATA
You should define in your template or view to enable/disable the submit button if the user is logged in/logged out before sending POST Data. But I think there should be a way to this what you want ;-) On Jul 21, 7:57 am, Raashid Malikwrote: > hi all, > > I am sending POST data to a view But this view has login_required > decorator enabled, So if i m user is not logged in, he goes to > /accounts/login page and when user login, al the POST data is lost. Is there > any way to maintain the actual POST data sent for view. > > Regards, > Raashid Malik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
SpatialRefSys
Hi, i've posted this question already in the geodjango-group (http:// groups.google.com/group/geodjango/browse_thread/thread/ 844c8c601f24cdf9?hl=en) but I think this should be a general django question. I have in my models: class PointClass(...): srid = models.ForeignKey(SpatialRefSys, default=4326) Not I get in my Admin Panel the complete wkt-representation: see http://static.karrie.info/media/srid.png How to get just a list of srid.name in my admin panel??? For example: srid.name = "WGS 84" Thankx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---