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
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
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
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:
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.
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
>
> :(
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
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
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
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
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
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',
, 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
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
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
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
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='
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
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
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
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
21 matches
Mail list logo