ttps://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form
--
Gonzalo Delgado
--
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
rward.
When in doubt, revisit the Django tutorial. This part is a good one for
where you're at: https://docs.djangoproject.com/en/2.0/intro/tutorial03/
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscrib
that.
[0]
https://docs.djangoproject.com/en/1.6/topics/auth/default/#topic-authorization
- --
Gonzalo Delgado
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREIAAYFAlPRAK0ACgkQzbfdFL5JoUmA3AD/etZo/zjdFK+q0n+
6/ref/contrib/csrf/#ajax
It uses a custom "X-CSRFToken" header in the AJAX query from the client.
You can probably implement something similar in your app (if it isn't
implemented in javascript).
- --
Gonzalo Delgado
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Us
ns you
want to it. I think you can even use autodiscover with a custom
AdminSite instance too if you need to have all models from
settings.INSTALLED_APPS attached to it.
[0]
https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#adminsite-objects
- --
Gonzalo Delgado
-BEGIN PGP SIGNATURE-
ango-polymorphic can definitely do that.
- --
Gonzalo Delgado
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREIAAYFAlJ5JpgACgkQzbfdFL5JoUnlKAD+LljmaN7XpFTdQtcZx4i9e43c
7hAZ8Y2XOv0tH5TljKcA+wQdh5fNUmk71laONL1bWBWi
e.now)
image_type = models.CharField(
max_length=20, choices=(('background', 'Background'),
('profile', 'Profile')))
and do:
m.image_set.filter(image_type='background')
or:
m.image_
; expire?
You want to use Redis[0].
There's also this django-redis[1] app that uses Redis as a cache
backend. It allows you to set keys with infinite timeout :-)
[0] http://redis.io/
[1] https://github.com/niwibe/django-redis
--
Gonzalo Delgado
--
You received this message because y
Try this instead in your template:
{% url 'detail' registo.id %}
When referencing named urls, the name must be exactly as defined in the url
pattern.
2013/5/9 Carlos Aboim
> {% url 'registo.detail' registo.id %}
>
--
Gonzalo Delgado
--
You received this message
naming-url-patterns
--
Gonzalo Delgado
--
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.c
El 17/03/11 09:30, galgal escribió:
I need to make an application in which all views require login. Is
there any good way to do that and not to use @login_required()
decorator with all methods?
Yes there is: http://djangosnippets.org/snippets/1220/
--
Gonzalo Delgado
--
You received this
tml
--
Gonzalo Delgado
--
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 o
add/
>
> [Errno 13] Permission denied: '/myproject'. Myproject is root folder
> of my django website. I have pasted traceback below.
>
You need to allow the http process user (most likely apache) to write in
that folder.
--
Gonzalo Delgado
--
You received this message
ubclass that to create most of the models in my
> application. Is this possible?
>
Hmm.. I can't think of any caveats off the top of my head. Did you try that?
The only thing that smells a little like trouble to me is setting a
default manager.
--
Gonzalo Delgado
--
You rece
elp.
>
The first result I get searching with Google turns up a snippet for
integrating Flexigrid into Django[0], did you try that?
[0] http://snippets.dzone.com/posts/show/6917
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django u
http://is.gd/dTrPN
--
Gonzalo Delgado
--
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...@googlegr
El 18/07/10 06:09, Antoni Aloy escribió:
> Actually the best productive "IDE" for me, and I'd like to remark the
> for me, is Vim/gVim with lots of plugins.
For me too, this link is useful:
http://code.djangoproject.com/wiki/UsingVimWithDjango
--
Gonzalo Delgado
--
You
site for only getting
that error message right, but I don't see any other way (don't want to
hack Django's code either, unless this is considered to be a bug).
Does anybody know of a better way to handle this?
Thanks!
--
Gonzalo Delgado
--
You received this message because you ar
t;
If using Linux, Pyinotify may be what you're looking for:
http://trac.dbzteam.org/pyinotify
--
Gonzalo Delgado
--
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...@googleg
o it's hard to
> figure out what's the right way to achieve this.
>
> Any ideas?
>
You want to take a look at easy-thumbnail:
http://github.com/SmileyChris/easy-thumbnails
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Group
case).
You may want to use ManyToMany instead of ForeignKey.
--
Gonzalo Delgado
--
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
from photologue.models import Gallery,Photo
> ...
> class CarDetail(models.Model):
> images = models.ForeignKey(Gallery, null=True, blank=True)
>
When car.images is null (which is allowed by your model definition) it
is not iterable.
Try something like:
{% if car.images %}
{% for
ou can fetch its contents using Django's template module
render_to_string function:
from django.template.loader import render_to_string
contents = render_to_string('test.html', {})
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
erver in anything resembling a production environment.
It's intended only for use while developing. (*We're in the business of
making Web frameworks, not Web servers*.)
"""
(
http://docs.djangoproject.com/en/1.1/intro/tutorial01/#the-development-server
)
--
Gonzalo Delgado
--
r but for testing how the site behaves under certain
conditions or with new features, etc.
[0] http://en.wikipedia.org/wiki/Staging_site
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
El 24/02/10 09:16, dj_vishal escribió:
> plz suggest me which is the better one for the schema
> migration for django apps
>
http://south.aeracode.org/
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
El 20/02/10 19:11, gintare escribió:
> Is it possible with python or i need java script?
You need javascript.
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
El 19/02/10 06:58, Massimiliano della Rovere escribió:
> Does anybody here know any CRM based on django?
http://tinyurl.com/ygcl4fw
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
lives in
django.template.defaultfilters.
--
Gonzalo Delgado
--
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.
El 18/02/10 10:18, Boris Schaeling escribió:
>
> This replaces the setter but not the getter.
To replace the getter, you'd have to override the modelform's __init__
method and set the corresponding field value from the instance getter.
--
Gonzalo Delgado
--
You received this
ok at Lamson[0] for building something like
that or Librelist[1] for something already built. They're not Django
apps, but they sure are Django friendly ;)
[0] http://lamsonproject.org/
[1] http://support.librelist.com/index
--
Gonzalo Delgado
--
You received this message because you are
ed?
>
Try livesettings: http://bitbucket.org/bkroeze/django-livesettings/overview/
--
Gonzalo Delgado
--
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 unsubs
s you mention and we pretty much build what would be
specialized CMSs using Django and opensource Django apps.
I can suggest you take a look at these links:
http://code.djangoproject.com/wiki/CMSAppsComparison
http://pinaxproject.com/
Best!
--
Gonzalo Delgado
--
You received this message
El 04/02/10 18:19, Rohan Shah escribió:
> Any good documentation available on how to implement AJAX with Django ?
http://lmgtfy.com/?q=django+ajax&l=1
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
How about in the "changehat" module, is "fields" not mentioned there
either (or in a module it imports, and so on)?
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
on URL you have to use.
> ---
> PROBLEM
> ---
>
> Now as mention earlier, when browsing to http://localhost:8000/blog/
> there's no option for subscribing to the feed.
> I've compared a lot of configurations and I cannot see the problem.
>
Well, isn&
ore itself), but
googling a bit turns out this:
http://code.google.com/p/django-sproutcore/wiki/BasicTutorial
Possibly outdated, but it's better than nothing.
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" g
http://docs.djangoproject.com/en/1.1/ref/models/fields/#recursive-relationships
[1]
http://docs.djangoproject.com/en/1.1/ref/models/fields/#django.db.models.ForeignKey.related_name
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users&q
El 12/01/10 11:02, Shawn Milochik escribió:
> This will help you get help:
>
> http://catb.org/~esr/faqs/smart-questions.html
>
+1
--
Gonzalo Delgado
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
I would ask first so I don't end up re-inventing the wheel if
> something has already been started.
>
I'm facing similar requirements and came across this app:
http://packages.python.org/django-authority/
but haven't tried it out yet.
--
Gonzalo Delgado
--
Yo
>
> /usr/share/pyshared/django/db/backends/mysql/introspection.py
> -rw-r--r-- 1 root root 4699 2009-12-27 15:13 introspection.pyc
> lrwxrwxrwx 1 root root58 2009-12-27 15:12 validation.py ->
> /usr/share/pyshared/django/db/backends/mysql/validation.py
> -rw-r--r-- 1 root r
t=django-
[4] http://github.com/search?type=Repositories&language=python&q=django
--
Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpdQBeZVm1Er.pgp
Description: PGP signature
have source code of account managing web application in
> Django, please share with me for reference.
http://lmgtfy.com/?q=django+account+app
:)
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpuuJkdNcUSl.pgp
Description: PGP signature
n the presentation layer.
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpVGngMDm9rd.pgp
Description: PGP signature
max_length=200) => [my guess: this defines the type of the
> data in the column "question"]
Yup, more on that here:
http://docs.djangoproject.com/en/dev/ref/models/fields/#ref-models-fields
Good luck!
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpddNIlYJXZt.pgp
Description: PGP signature
entation[1] explains how to connect to a hosting
server!
Not only that, Django provides its own mail API[2]!!!
Good luck with your site!
[0] http://pinaxproject.com/
[1]
http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index
[2] http://docs.djangoproject.com
s are, they're different type of objects)
> I can access the fields using the field names
>
> {% for projectItem in projList %}
> {{ projList.projectName }}
> :
> {% endfor %}
>
> This produces an output but this gets away from the point of making a
&
docs.djangoproject.com/
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgp52dkxrGPQ5.pgp
Description: PGP signature
text values as parameters. So I'm guessing the obvious way to do it is
handing what datetime.datetime.now() returns (you'll probably need to convert
it to a string) to the template context from your view.
You could also write a "datetime" context processor to hand current datetime
data to all your templates.
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpeYovwlP0TK.pgp
Description: PGP signature
ric-views/#topics-generic-views
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpTo39J1DiJg.pgp
Description: PGP signature
se python-ldap:
http://www.python-ldap.org/
Hope it helps.
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpQ7LdN9aq7V.pgp
Description: PGP signature
don't need revision
> control, then you can simplify this, but I think it's pretty simple as is!
Or.. you could just use django-dbtemplates[0].
[0] http://bitbucket.org/jezdez/django-dbtemplates/wiki/Home
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgphfgCNdAEvJ.pgp
Description: PGP signature
;<<<<<<<<<<<<<<<<<<<<< ?
>
>
> >> {% else %}
>
> {% endif %}
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpybCgIPfG82.pgp
Description: PGP signature
El Sun, 13 Sep 2009 17:12:41 -0700 (PDT)
Shuge Lee escribió:
> How to get current URL ?
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.path
--
P.U. Gonzalo Delgado
http://gonzalodelgado.com.ar/
pgpcJxfIZ1MCG.pgp
Description: PGP signature
jango-tips-get-most-out-generic-views/
especially the "Getting more out of a generic view" part. Hope it helps.
Hope it helps.
--
P.U. Gonzalo Delgado <[EMAIL PROTECTED]>
http://djangopeople.net/gonzalo/
pgpot6SShJfO3.pgp
Description: PGP signature
anks in advance.
>
>
I used Eclipse+PyDev for a while, but now I'm only using scribes[0], which is
awesome! I love minimalistic software.
Using the console for anything that isn't coding (debugging, testing, version
control) is much better/faster than Eclipse IMHO.
[0] h
t I cannot find it. Really
> appreciate if someone can help me out.
> Thanks
> Cliff
You're probably looking for this:
http://www.djangoproject.com/documentation/model-api/#id4
--
P.U. Gonzalo Delgado <[EMAIL PROTECTED]>
http://djangopeople.net/gonzalo/
pgpMf8HiTv4IF.pgp
Description: PGP signature
le (or even separate
departments). Designers and HTML/CSS coders shouldn’t have to edit
Python code to get their job done; they should deal with HTML.
"""
[1] http://www.djangobook.com/en/1.0/chapter04/
--
P.U. Gonzalo Delgado <[EMAIL PROTECTED]>
http://djangopeople.net/gonzalo/
pgpqLmJBDV0Ca.pgp
Description: PGP signature
under the right circumstances. I am not a recruiter
> > - I'm a regular developer who sometimes gets asked for referrals when
> > I'm not personally available.
>
> The site you're looking for is djangogigs.com.
>
Also, djangopeople.net
--
P.U. Gonzalo Delg
El Sun, 13 Apr 2008 19:42:19 -0300
"Ramiro Morales" <[EMAIL PROTECTED]> escribió:
>
> On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado
> <[EMAIL PROTECTED]> wrote:
> > Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The
> &g
Is there a guide for this kind of migration?
Thanks!
--
Gonzalo Delgado <[EMAIL PROTECTED]>
pgpNOe1gkT19T.pgp
Description: PGP signature
ooglegroups.com
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en
> -~--~~~~--~~--~--~---
>
expect[0] should do the trick. Although there has to
El Tue, 06 Nov 2007 10:28:39 -0800
Chris Brand <[EMAIL PROTECTED]> escribió:
>
> Gonzalo Delgado wrote:
> >
> > The question is: why doesn't something like this work:
> >
> > ticketform.fields['server'].queryset =
> > Server.object
rendered form doesn't filter out the
server choices.. any clue?
Regards.
--
Gonzalo Delgado <[EMAIL PROTECTED]>
pgpkCM10etD0q.pgp
Description: PGP signature
d_python?
> (since iam a newbie to mod_python also i prefer using the development
> server for sometime)
>
> Goutham
>
http://www.djangoproject.com/documentation/0.96/static_files/
--
Gonzalo Delgado <[EMAIL PROTECTED]>
pgpgJU7MKhjNx.pgp
Description: PGP signature
Hello there, I'm using an XMLField in one of my models. I've downloaded
jing for compilation with gjc from
http://www.thaiopensource.com/relaxng/jing.html (I got the link from
Djano documentation), compiled it and installed it fine. But when I
create a new object from that model, using the admin
66 matches
Mail list logo