inspectdb errors: missing 1 required positional argument: 'collation'

2021-06-23 Thread Stephan van Beerschoten
ct table 'BBB' # The error was: () missing 1 required positional argument: 'collation' What's going on here? Thanks, Stephan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Pytest, django, and logging formatters

2020-07-31 Thread 'Stephan Stachurski' via Django users
I am trying to test a django application that depends on a custom log formatter. App log lines look like this: `logger.info("Message with formatting {} {}", "foo", "boo")` Obviously these log lines depend on a formatter that does something like this: `msg = msg.format(*self.args)` The app u

Admin Master-Detail: Dynamically filter selections in detail

2018-02-11 Thread Stephan Jaschke
lect-boxes in the inlines to reflect that change and to show only Fields which are bound to that specific csv resp. index-schema. It seems that this should be doable via js and ajax but I've no idea how this should be done. Any ideas, pointers or hints? Regards Stephan -- You received this

Is CSRF middleware to be taken seriously (from a XSRF point of view)?

2018-01-15 Thread Stephan Doliov
Just curious, I recently went on a source code studying binge and took a look at the CSRF middleware that comes with Django. I appreciate the work and effort of the authors, but I am not sure I gain anything by deploying it to my site. Here is why: The middleware token assigned to a form and to

Trapping underlying exceptions

2018-01-05 Thread Stephan Doliov
Hi, I am diving ever deeper into Django and I came upon some behavior that frustrated me but perhaps I am just misunderstanding what should happen and why. In writing unit tests for code, I wanted to write one that traps a json.decoder.JSONDecodeError by passing in some malformed JSON. What ap

Re: Newbie question - data structure for game

2016-10-29 Thread Stephanie&stephan Statsmann
K -- 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.

Re: Concept of partial views to be resolved from other views or template tags

2015-04-25 Thread Stephan Herzog
Thanks for your reply. We are actually using ESIs in one place or another and one of the projects I have in mind for refactoring currently uses ESI to achieve something similar. Varnish however is an additional layer on the server that in many of our cases is not really necessary (as in either n

Concept of partial views to be resolved from other views or template tags

2015-04-25 Thread Stephan Herzog
e tested and developed on a dedicated url. If necessary it can be wrapped in a templatetag, which makes it easy to use from the template layer. On top of that, by implementing something like a format='json|html|xml|...' attribute it could be further improved to allow for more advanced

Re: Django with FastCGI doesn't works

2013-03-06 Thread Stephan Hassenpflug
Hi, I have the same problem, but I can not see what to change. I can not change the setup of apache as described. Am Samstag, 25. Juni 2011 18:01:06 UTC+2 schrieb bruno desthuilliers: > > On Jun 25, 10:24 am, geonomos wrote: > > Hi, > > I'm new in django frameworck and I'm tring to develop a s

customize the comment template for cleaned_data errors

2012-12-29 Thread Stephan
late also for error messages? I don't need the preview for comments. Regards Stephan -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xGD0

Use GraphDB with Django

2012-03-07 Thread Stephan Gerhard
in my views. Thanks for any suggestions or ideas, Stephan -- 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

Re: problem installing PIL

2012-02-03 Thread Stephan
You can download PIL for all py-versions and 64bit from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil -- 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 g

set_language redirect view with Internet Explorer

2010-08-28 Thread Stephan
Internet Explorer? Greetings Stephan -- 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

Re: URL problem

2010-07-19 Thread Stephan Huiser
27;, 'archive_index', info_dict ), (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?P\w+)/$', 'object_detail', dict(info_dict, slug_field='slug', template_name='blog_post.html') ), (r'^(?P\d{4})/(?P[a-z]{3})/(

URL problem

2010-07-19 Thread Stephan Huiser
(r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?P\w+)/$', 'object_detail', dict(info_dict, slug_field='slug', template_name='blog_post.html') ), (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/$', 'archive_day', info_di

Seeking beta testers for Wing IDE 4.0's Django support

2010-05-24 Thread Stephan Deibel
for Django templates (w/ live runtime data if debugger is active) If you would like to try it out, please see: http://wingware.com/wingide/beta Feedback of all types and bug reports will be much appreciated. Thank you! Stephan Deibel Wingware Python IDE -- You received this message because you

Re: template code in tinymce editor

2010-02-18 Thread Stephan John
Thanks for this interesting approach. Stephan Am Freitag, 19. Februar 2010 00:34:54 schrieb Matías Costa: > In general no, but in this simple usage it is posible. Writing from > memory, the names will be wrong: > > class Info(models.Model) > ...fields > > def art

template code in tinymce editor

2010-02-18 Thread Stephan John
(with tinymce-editor): Your IP-Address: {{ info.REMOTE_ADDR }} What can I do so that the code is executed to “Your IP-Address: 123.456.789.123” ? Regards Stephan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Project layout: put templates and js/css together?

2010-01-18 Thread Stephan Walter
g a dead horse with this topic, what are your suggestions to organize a small project that will not be redistributed/packaged/used elsewhere? -Stephan Walter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: No admin-url match when DEBUG=False

2009-03-28 Thread Stephan John
Am Freitag, 27. März 2009 21:05:09 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 9:44 AM, Stephan John wrote: > > Your calls to admin.site.register should not be in your models.py file. > They should be in a file named admin.py and a call to admin.autodiscover() > ought to be i

Re: How do I define choices in ChoiceField

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:43:08 schrieb Joshua Partogi: > bel = forms.ChoiceField(choices=({'one':'one','two':'two'}) ) it must be tuples: bel = forms.ChoiceField(choices=(('one', 'one'), ('two', 'two' ) ) --~--~-~--~~~---~--~~ You received this message becau

Re: No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:28:28 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 9:19 AM, Stephan John wrote: > > I registered the models with: > > admin.site.register(Beitrag, BeitragAdmin) > > admin.site.register(Container, ContainerAdmin) > > > > It works fi

Re: No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:01:37 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 8:10 AM, Stephan John wrote: > > Hi all, > > > > I have some trouble with my Admin-URLs. When I set DEBUG=False (in the > > settings.py) I become this error (I've changed some line

No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
seite/beitrag/, didn't match any of these. But when I set DEBUG=True, everything is OK and I have no errors. (I use Django version 1.1 beta) Thanks for your help Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

autofill user

2008-09-11 Thread Stephan Hoyer
ears ago) which are quite complicated. How is it done today? Thanks for answering Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Problem with query_set extra select/field casting

2008-08-28 Thread Stephan Jäkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, both hosts run the same Django version: trunk r8555. regards, Malcolm Tredinnick wrote: | | On Thu, 2008-08-28 at 20:58 +0200, Stephan Jäkel wrote: | [...] |> x.date returns a unicode string even its the same code, the same |> databa

Problem with query_set extra select/field casting

2008-08-28 Thread Stephan Jäkel
uery_set().extra( ~select = { ~'date': extra_last_updated, ~},).exclude(deleted=True).order_by('-date') I have no idea why this problem appears.. any ideas? thanks in advance :-) best regards, - -- Stephan Jäkel e-Mail : [EMAIL PROTECTED] Websit

Re: many to many field

2008-06-25 Thread Stephan Jäkel
the column name for the Article Model in the db_table, db_m_field is the column name for the Category Model in the db_table. Have fun.. Best regards, Stephan Jäkel wrote: | thanks for the advice. great stuff. i'll follow the ticket. | | best regards, | | Ramiro Morales wrote: | | On Tue, Jun 24

Re: Data truncated for column change_message

2008-06-25 Thread Stephan Jäkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 database charset was the problem. see http://code.djangoproject.com/ticket/5007 fixing the encoding in the database solved the problem. Stephan Jäkel wrote: | Hi, | | the Data truncated error is thrown for a django table. my models are ok, | i

Re: many to many field

2008-06-24 Thread Stephan Jäkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thanks for the advice. great stuff. i'll follow the ticket. best regards, Ramiro Morales wrote: | On Tue, Jun 24, 2008 at 3:40 PM, Stephan Jäkel <[EMAIL PROTECTED]> wrote: |> -BEGIN PGP SIGNED MESSAGE- |> Hash: SHA1 |> |

Re: Data truncated for column change_message

2008-06-24 Thread Stephan Jäkel
. Peter Rowell wrote: | I don't know if this is the problem, but I've noticed that inspectdb | can generate wrong max_length for CharFields. Check the lengths in the | database vs. the lengths in your models. | | | - -- Stephan Jäkel e-Mail : [EMAIL PROTECTED] Website : http://rdev.inf

Re: many to many field

2008-06-24 Thread Stephan Jäkel
use | the "db_column" option to name the fields in that table. | | http://www.djangoproject.com/documentation/models/custom_columns/ | | On Jun 24, 1:43 pm, Stephan Jäkel <[EMAIL PROTECTED]> wrote: | hi, | | joshuajonah wrote: | | | You should use the 'db_table' option for

Re: many to many field

2008-06-24 Thread Stephan Jäkel
oc: | http://www.djangoproject.com/documentation/model-api/ | | Does that help? a bit, but thanks anyway :-) | | On Jun 24, 12:41 pm, Stephan Jäkel <[EMAIL PROTECTED]> wrote: | Hi list, | | i'm currently implementing django as management interface for an | existing project. until n

many to many field

2008-06-24 Thread Stephan Jäkel
p the tablename and columns? best regards, - -- Stephan Jäkel e-Mail : [EMAIL PROTECTED] Website : http://rdev.info Mobile : +49 163 458 9 173 What do you mean that could take down the whole network? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with

Re: Do you code django with Komodo?

2008-06-24 Thread Stephan Jäkel
ol language. |> big thanks to all of you that make it available. (I hope to get clued |> up enough to contribute at some point.) - -- Stephan Jäkel e-Mail : [EMAIL PROTECTED] Website : http://rdev.info Mobile : +49 163 458 9 173 What do you mean that could take down the whole network?

Data truncated for column change_message

2008-06-24 Thread Stephan Jäkel
on the mysql server. it works just fine. (the statement adds the log entry to django_admin_log) the error is declared as warning, but raises an exception-of-death ;-) any ideas to fix this behaviour? best regards, - -- Stephan Jäkel e-Mail : [EMAIL PROTECTED] Website : http://rdev.info Mobile

Re: Inheritance: getting subclasses' objects

2008-06-12 Thread Stephan Walter
ow. To clear it up: the File class is never going to be used in isolation (except for File.objects.all() ), therefore I now use multi-table inheritance. -Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Inheritance: getting subclasses' objects

2008-06-12 Thread Stephan Walter
rong idea... Any help is appreciated! -Stephan Walter --~--~-~--~~~---~--~~ 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 fr

Django Job: Naples Daily News

2007-06-18 Thread Stephan Schonberg
tails are at: http://jobs.scripps.com/details.html?id=6290 For those unfamiliar with Naples, we're located in southwest Florida, (south of Tampa and west of Miami). http://maps.google.com/maps?f=q&hl=en&q=naples,+fl&ie=UTF8&z=12

KeyError

2007-05-07 Thread Stephan Jennewein
, 'dhcp_helper', 'switchport_status', 'anschluss_status') search_fields = ['swnr__swnr', 'anschlnr__anschlnr', 'portnr', 'switchport_status', 'anschluss_status'] Is there anything wrong or isn't it possible t

BigIntegerField

2007-04-19 Thread Stephan Jennewein
Hi, is there something like a BigIntegerField for the models.py ? I need an integer bigger than 4 byte. I found a patch for revision 3000 but it doesn't work. Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G