Re: hstore support in postgis backend

2012-11-28 Thread Reiner Marquez
Hi Matt, firstly, I would like mention that https://github.com/jordanm/django-hstore is not the most updated version. My suggestion is to use https://github.com/aino/django-hstore (referenced at pypi http://pypi.python.org/pypi/django-hstore/1.1.1) Now, as well you said, if you use the backend

Re: PostGIS 2.0.0 problems

2012-08-13 Thread Reiner Marquez
hey guys, take a look at this, it saved my live on today. https://github.com/django/django/pull/249 El lunes, 6 de agosto de 2012 10:28:50 UTC-5, Oleg Korsak escribió: > > Have you tried to create new project, then new app, then new model with > PointField(geography=False) and then run

Re: Add message each page load

2010-04-02 Thread Reiner
Are you using the develoment server? Is your static media served by django? If yes, I guess that your middleware might be called several times each page load, for every image/js/css etc. On Mar 31, 1:54 am, Wiiboy wrote: > >  - have you enabled the messages' context

Re: Caching template fragments without specifying expiration time

2009-08-03 Thread Reiner
Be aware that the way the cache key is constructed changed a bit. I'm also invalidating template fragments when models used for rendering changed, and found this while randomly reading changesets: It used to be: fragment_name:additional:arguments:seperated:by:colons Now it is:

Re: Template tags as parameter to template tag

2009-07-21 Thread Reiner
Maybe I'm missing something here, but what is wrong with this? {% tag_link tag.name %} The string "tag.name" gets passed to your template tag, you resolve it against the current context when rendering it, and then you have the value and can do whatever you want with it. See [1] for reference.

Re: django-registration .missing templates?

2009-07-20 Thread Reiner
The documentation states that you need to write these templates yourself, no examples are included with the package. http://bitbucket.org/ubernostrum/django-registration/src/tip/docs/overview.txt#cl-161 On Jul 19, 7:26 pm, Asinox wrote: > ok,  ...there no exist's > > :(

Re: Reusable Contact Form include error?

2009-07-02 Thread Reiner
That might be trivial, but you didn't show more views, so - do you add a form instance to the template context in every view? On Jul 2, 6:35 pm, 1angrycats wrote: > Hi everyone, long time lurker, first time botherer. > > I hope someone here can help me out

Re: FileField can't re-display invalid form with File upload widget filled-in?

2009-06-24 Thread Reiner
I doubt that this is possible, looks like a security risk if you can select files from the clients pc arbitrary to be uploaded. If that would be possible, a malicious website could embed a in its code, preselect a file from the clients pc, and hide that element with CSS. Most users probably

Re: include behavior

2009-06-21 Thread Reiner
For 2.: I didn't try it, but if you're putting the path in quotes, include tries to import it by itself, but there is no module named admin. It is django.contrib.admin. admin.site.urls without quotes works, because you probably allready imported it, e.g. to use admin.autodiscover(). That's the

Re: Accessing tables not created by django models using django APIs.

2009-05-26 Thread Reiner
I don't want to sound rude, I'm just curious, why do you need multiple tables with the same schema, but different names, in the first place? On May 26, 1:17 pm, ds99 wrote: > No that table name will be different every time based on some id. If > table name is same then

Re: reset button question

2009-05-24 Thread Reiner
I can't think of any reason why it shouldn't work, so I think their might be a problem in your code. Could you some snippet of the relevant html code? On May 24, 3:38 pm, Bobby Roberts wrote: > i'm trying to put a simple reset button on a form but it's not > working  Why

Re: how to load data?

2009-05-23 Thread Reiner
Fields seperated with \t sounds a bit like a CSV export right? I needed to import CSV too, so I used the csv module to parse the file and then django models to store it in the database, no custom sql needed. # set up django environment [ ... ] import csv reader = csv.reader(open('file.csv',

Re: adding errors to forms

2009-05-23 Thread Reiner
, as noted here: http://docs.djangoproject.com/en/dev/ref/forms/api/#customizing-the-error-list-format Now that I had a look at the source, there is an ErrorDict too, not sure what gets used when, but it should be irrelevant to your problem. Regards, Reiner On May 22, 10:42 pm, CrabbyPete <pete

Re: models unique_for_date

2009-05-19 Thread Reiner
of the ModelAdmin options as a mean to control (mostly) display and interaction with the model, and field options as further constraints to your model. You want your model specification to be in only one place, and that would be in the model itself. Regards, Reiner On May 19, 2:19 am, Mohan

Re: Display an URLField as a Link

2009-05-12 Thread Reiner
Initially I thought you were talking about the admin, because of the column url you mentioned. If that's the case, have a look at this part of the documentation. You can define a property on your model, or if you just want the admin to display it as a link, use a module-level function or define

Re: dev server vs. real server oddity

2009-04-04 Thread Reiner
view will raise a 404 instead of displaying an empty page. By default, this is False." So you might want to use allow_empty=True in your view to prevent raising 404s on empty querysets. Regards, Reiner On Apr 4, 4:20 pm, dls <daniel.si...@gmail.com> wrote: > Ok, it turns out that the &qu

Re: Cannot reverse inside urls.py

2009-04-03 Thread Reiner
as the_url %} I'm linking to {{ the_url }} This way you don't need to pass the URL in your extra_context. Regards, Reiner On Apr 3, 10:24 am, robin <robinc...@gmail.com> wrote: > It seems like you cannot use reverse within urls.py > >   url(r'^add/$','items.views.add_item_wizard',name='

Re: Using

2009-03-18 Thread Reiner
efore http://example.com/myproj/mypage#top was redirected first. You better only specify the anchor, that way you don't have to care about the page's URL at all. Regards, Reiner On Mar 18, 4:59 pm, NoviceSortOf <dljonsson2...@gmail.com> wrote: > Thanks for the answer... > > Looking

Re: Django first app doubt

2009-03-18 Thread Reiner
I haven't read the tutorials in a while, but shouldn't it be http://localhost:8000/admin/ instead of http://localhost:8000/*polls/*admin/ ? Regards, Reiner On Mar 17, 6:53 pm, Gustavo Senise <gustavosen...@gmail.com> wrote: > Hello fellows, > > I am starting the django first app

Re: Django and SEO activities

2009-03-09 Thread Reiner
Additionally django comes with a sitemap application in contrib.sitemaps. See http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/ for more information. This should make indexing your website a lot easier for bots, you can even ask google for reindexing when your sitemap changes for

Re: How to create such a model?

2009-03-09 Thread Reiner
Hi, have a look at the documentation of field options in models: http://docs.djangoproject.com/en/dev/ref/models/fields/#blank class Foo(models.Model): this_is_required = models.CharField(...) this_not = models.CharField(..., blank=True) Regards, Reiner On Mar 9, 8:37 am, khsing