ty out of date at this point, and some sections --
like the Admin site -- will simply not work.
Your best bet is to go through the tutorials on the Django documentation
site.
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message be
o is that a lot of the older documentation and
literature may no longer apply.
The good news is that once you learn Django 1.0, there shouldn't be any
future breaking changes for some time.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received
e data , the old value and the new value etc
>
That's a debatable point, but it would be fairly easy to create a Change
model, and either define save() methods or use pre/post save signals to
populate changes so that you have a change hist
the second
> request just hangs until the file upload completes, preventing the
> status update. Is there any way to make the dev server multi-threaded?
It's probably easier to just use apache at that point.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---
e one of the pure python servers out there. See:
http://www.eflorenzano.com/blog/post/hosting-django-site-pure-python/
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
topics/forms/#customizing-the-form-template
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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.c
ev/ref/contrib/formtools/form-wizard/#django.contrib.formtools.wizard.FormWizard.process_step
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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@googleg
isitors/clients.
> ...
> How should i solve this? I've tried numerous ways but none of them
> really worked.
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---
gt; How do I avoid the default behavior that does a cascade delete. Of
> course I could use the cursor but would am hoping there is some option
> I don't know of for delete().
Try using clear() prior to deleting:
http://docs.djangoproject.com/en/dev/topics/db/queries/#following-relation
On Mon, Nov 17, 2008 at 2:34 AM, David Zhou <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 17, 2008 at 2:21 AM, Merrick <[EMAIL PROTECTED]> wrote:
>>
>> How do I avoid the default behavior that does a cascade delete. Of
>> course I could use the cursor but would am
e. And, IMO, the vast majority
of foreign key use cases do benefit from an auto cascading delete.
For the specific Links/Groups example, personally I'd just do it with
a many to many relation. It's entirely feasible that in the future,
Links will need the ability to associ
is other
> than mixing objects and dictionaries in the list?
What about making it a list of tuples, and including a type?
{'articles': [('single', ),
('multiple', {1: , 2: }),
('single', )]}
Then you could just do a {% for type, article in articles %}, and
ibility is to give the decoration a "block" parameter, to
render a specific block from a template. So you could have something
like:
@render_view('js', 'template.html', block='js_block')
def view:
pass
--
---
David Zhou
[EMAIL PROTECTED]
--~--~
ist has different
'types' of renderings.
My way put that logic into me template, but ideally, as Bruno said,
each 'type' should be able to dispatch its own specific render.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You rec
of using
> this view in a production env ?
Have you considered using request/response signals?
http://docs.djangoproject.com/en/dev/ref/signals/#module-django.core.signals
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this messa
> CharField instead of ImageField, but then how do I go about showing it
> inline? fieldsets.description doesn't allow anything but text.
You can write your only readonly image widget, and apply it in the
admin by specifying your own form:
http://docs.djangoproject.com/en/dev/ref/contr
rack requests in Django in general, you may
be able to do that by using a listening for a request finished signal,
and doing something with it.
What are you specifically trying to do by tracking which users
requested the file?
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~---
I'm getting the following error:
>
> global name 'form' is not defined
>
>
> am I missing something?
> >
>
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&q
gt; made to this file. used in generating internal metric reports. I guess
> i'll have to dig into the django code to see how signals are used..do
> you know of any example where the request_finished signal is used ?
>
> thanks,
> -p
>
> On Nov 18, 10:23 pm, "David Zho
it its ok inproduction env though..
Do you not know which pages the gif will live on? Why not grab
visitor data in the views of the pages that use the transparent gif?
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because
s
> first letter is automatically converted to lower case.
>
> Am I on the right lines here? If so, what happens if you declare your
> classes with all lower case letters in models.py?
>
>
> Thanks,
> >
>
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~-
and how they pass things to the
template context.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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
T"
>
> urls.py
>(r'^hello/(?P)\S+/$', 'swamiji.poll.views.hello')
Check your URL regexp and grouping.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
t;>
>> Thanks,
>> Alex
>> >
>>
>
>
> --
> Adi J. Sieker mobile: +49 - 178 - 88 5 88 13
> Freelance developer web:http://www.sieker.info/profile
> SAP-Developer
>
> >
>
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~--
} for person {{person}}
{% endfor %}
Personally, if the current age of a person is something you'll be
using often, I'd add it to the model.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Tue, Nov 25, 2008 at 9:05 AM, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> David Zhou wrote:
>> On Tue, Nov 25, 2008 at 3:55 AM, sajal <[EMAIL PROTECTED]> wrote:
> [...]
>>
>> Personally, if the current age of a person is something you'll be
>>
On Mon, Dec 1, 2008 at 2:23 AM, David Shieh <[EMAIL PROTECTED]> wrote:
> I dont' know whether this make any sense .
> Right now , I can't test it , but if django won't initiate the
> views.py as a class , this method will make no sense.
Why not write a dec
it with a custom CSS file but I hope there is a simple way.
> Is there?
If you want the layout to be print optimized, the easiest way is going
to be using some custom admin templates that use some custom CSS.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~
On Wed, Dec 3, 2008 at 1:17 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote:
>
> To trim last colon wrap it with if statement:
>
> {% if forloop.revcounter0 %},{% endif %}
You can also do:
{% if not forloop.last %},{% endif %}
Which, IMO, is slightly more clear.
---
David Zho
or?
Assuming it's following standard Python database API practices, you
can, if you want, but it's optional.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
ht, since you had the inside
the . Fix the markup, and it'll be fine, doctype and all.
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
djangoproject.com/en/dev/topics/forms/modelforms/
What does your form class look like?
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
iffer much more than Python and Ruby.
> There are "small" differences between Python and Ruby, but the core
> philosophies and structures of Rails and Django on the other hand are
> completely unrelated and pretty much incompatible.
What do you think are the core philosophies of Rails and
them in a new tab or anything of that nature?
--
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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@goog
browsers have some such way to see the raw html
> for a page.) Or am I misunderstanding your question?
If the question is getting at the actual admin site templates, see:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
--
---
David Zhou
[EMAIL PROTECTED]
ems to me that "The Definitive Guide To Django" is more organized
>> and covers a lot of materials.
>> What do you think?
>
> As the author, I recommend waiting a couple months.
Are you planning to update Practical Django Projects to 1.0?
--
---
David Zhou
da...@nodnod.n
On Mon, Jan 5, 2009 at 3:57 AM, Kenneth Gonsalves
wrote:
>
> On Monday 05 Jan 2009 2:10:34 pm David Zhou wrote:
>> >> and covers a lot of materials.
>> >> What do you think?
>> >
>> > As the author, I recommend waiting a couple months.
>>
&
o avoid so that it becomes faster
First thing you need to do is figure out where the slowness
originates. Is it from DB access? XML generation?
If it's from DB access, include the code you're using to fetch data.
If XML generation, likewise.
--
---
Da
.com/browser/django/tags/releases/0.96/django/utils
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
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@googlegro
re?
See:
http://docs.djangoproject.com/en/dev/howto/static-files/
And if you're using mod_python, also see:
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-media-files
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
You r
> original forms and allow for easier migration.
seki, this is why it's always been recommended to do "import newforms
as forms", since that allowed easier migration when newforms was
renamed and replaced forms.
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~---
hen I spend an inordinate amount of time wondering
why my changes aren't working when I was editing the wrong copy of the
file the entire time.
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
t's
considered best practice.
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
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.
et a Django error? If so, what is it?
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
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.
autoescaping later on. What you put in your template is what you got.
--
---
David Zhou
da...@nodnod.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
ngoproject.com/browser/django/trunk/django/contrib/admin/options.py?rev=8266#L404
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On Aug 19, 2008, at 1:02 PM, David Zhou wrote:
>
> On Aug 19, 2008, at 12:48 PM, Huuuze wrote:
>
>> The latest Django beta added this method to the admin models:
>>
>>>> save_model(self, request, obj, form, change)
>>
>> I have a business case where
entation/admin/#adding-custom-validation-to-the-admin
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
on:
http://brianmckinney.net/blog/2007/aug/22/installing-satchmo-webfaction/
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
ting}), what are these two things opposite of the
> colon?
That's a Python dictionary, with 'my_meeting' as the key, and the
my_meeting object as the value. See:
http://docs.python.org/dev/tutorial/datastructures.html#dictionaries
---
David Zhou
[EMAIL PROTECTED]
--~--~--
hat sounds acceptable for one
> table, but now add a few more subclasses and give them a few
> subclasses
> of their own and it rapidly becomes horribly inefficient without
> trying
> very hard).
Would it work if a ModelAdmin defined its own queryset() method that
app
xpected page is shown. The remaining 1/10
> times the "It worked!" page pops up. Searching for this problem seems
> a bit difficult. Any idea on what could be happening?
Did you restart the server after making your changes?
---
anage that in my SVN repository.
...
> Is there a better way? Does this cause a performance hit, or is
> settings.py and urls.py processed only once?
If it's mostly paths that you need to change, check out:
http://rob.cogit8.org/blog/2008/Jun/20/django-and-relativity/
ct.com/en/dev/ref/models/fields/#django.db.models.FileField
Then you can write your own method that returns the proper path.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
s there any other way to render
> bunch of key-value items from a view in a desired order? Thanks for
> help
What are you trying to do, specifically? If order is important, why
bother with a key? Why not just store all the values in a list?
---
Davi
ess.
If you have a recent version from trunk, you should be able to define
your own length via max_length:
http://docs.djangoproject.com/en/dev/ref/models/fields/#emailfield
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this messag
#x27;phone': 723872, 'Total Friends': 20, 'Avg Rating' :
> 3.6}
> so when I render I would these to appear in order.
Can you post the relevant view and template code?
But if it's just those fields, why not refer to them explicitly? Such
as:
{{dict_variabe.nam
other tables. Following will give you an idea of
> what I am trying to do. Thanks
Since it looks like you're basically using the dictionary like a list
of tuples, why not make it a list of tuples? It should preserve
ordering too, that way.
---
David Z
t. or something similar.
I think you should open a ticket for it.
But an easier way to do it is to just use clearfix:
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
On Sep 2, 2008, at 1:34 PM, Matt Berg wrote:
> In my template, I want to be able to iterate through the crops with
> info like this:
>
> {{ ci.[crop.id].total }}
Are you using this within another loop? Where's crop.id coming from?
---
David Zhou
I've had pretty good experiences with WebFction.
David
Sent from my iPhone
On Sep 2, 2008, at 7:30 PM, Ed Wong <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> i am looking for a good web host for my django website. does anyone
> suggest a good host? thanks.
>
> >
--~--~-~--~~
am looking for a good web host for my django website. does anyone
> suggest a good host? thanks.
>
>
>
>
>
> --
> Nikos Delibaltadakis
>
> >
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message bec
t?
Django autoescapes. See:
http://docs.djangoproject.com/en/dev/topics/templates/#how-to-turn-it-off
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
Are now available according to their homepage:
http://mediatemple.net/webhosting/gs/django.html
Was anyone in the beta? I've not used them, so I'm wondering what the
experience was like.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
Yo
e set up which allows you to play around with the admin
> interface.
>
> The software is still in development and we would appreciate any
> feedback and contributions.
>
> Greetings from Switzerland,
>
> Thomas Stei
viously I can
> disable the "Can delete" permission, but the ugly box is still there.
Have you tried editing the admin templates to not show the checkbox?
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are
t is to allow variable amounts of slashes --
like:
(r'^test/+$', 'modwork.views.test.index'),
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
On Sep 8, 2008, at 2:55 PM, Kurczak wrote:
> On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote:
>> On Sep 8, 2008, at 2:30 PM, Kurczak wrote:
>>
>>> Is there any way to disable/remove the delete checkbox for inline
>>> formsets ( in admin) ?
>
gednewforms-adminintotrunk
Specifically, the "Changed prepopulate_from to be defined in the Admin
class, not database field classes" section.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribe
d permissions. I usually do so anyway, in case I need to
change how permission works in the future.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
n't support absolute paths.
Sounds like you just need to define that method for the S3 backend.
It's falling back on the base method that spits out the exception.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this messa
, if you're used to VIM at all,
MacVim (http://code.google.com/p/macvim/) is pretty awesome.
---
David Zhou
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
ation stuff or additional security
> hardening. This will probably be the case for many teams since Nginx
> is so new.
I've also heard good things about WSGI -- though I haven't heavily
tested its stability compared to, say, mod_python.
---
David Zhou
[EMAIL PROTECTED]
--~--~
On Thu, Jan 22, 2009 at 10:53 AM, john wrote:
>
> No matter what i do i can't get my css to load. 100% Frustrated with
> Django. My index page loads when i request http://127.0.0.1:8000/ but
> it is not styled. Django dev server returns 404 in console for "GET /
> css/styles.css HTTP/1.1"
Try do
I've been doing the following for a while, but I'm not sure if it has
unintended side effects:
#settings.py
import os, sys
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),
'apps'))
I keep pluggable apps in an svn repo, and do checkouts of the ones I
need in the apps folde
b 19, 2009 at 12:10 AM, David Zhou wrote:
> I've been doing the following for a while, but I'm not sure if it has
> unintended side effects:
>
> #settings.py
> import os, sys
> sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),
> 'apps'
Suppose I had this form:
class BaseForm(forms.Form):
field1 = forms.CharField(...)
field2 = forms.Charfield(...)
And then in a subclass, I had:
class SubForm(BaseForm):
field1 = forms.EmailField(...)
What's a good way to remove field2 in SubForm? Setting field2 = None
didn't work.
Do you mean del self.fields['field2'] in SubForm's __init__?
-- dz
On Fri, Feb 20, 2009 at 10:39 AM, Alex Koshelev wrote:
> Try this:
>
> del SubForm.fields['fields2']
>
>
> On Fri, Feb 20, 2009 at 6:15 PM, David Zhou wrote:
>>
>> S
(BaseForm):
> field1 = forms.EmailField(...)
>
> del SubForm.base_fields['fields2']
>
> On Fri, Feb 20, 2009 at 6:45 PM, Alex Koshelev wrote:
>>
>> No. Place this code right after the SubForm definition.
>>
>> On Fri, Feb 20, 2009 at 6:42 PM, David Zho
edinnick
wrote:
>
> On Fri, 2009-02-20 at 10:15 -0500, David Zhou wrote:
>> Suppose I had this form:
>>
>> class BaseForm(forms.Form):
>> field1 = forms.CharField(...)
>> field2 = forms.Charfield(...)
>>
>> And then in a subclass, I had:
If it's not valid, then something likely threw a validation error.
What does the error say?
-- dz
On Tue, Mar 24, 2009 at 3:11 PM, Theme Park Photo, LLC
wrote:
>
> It has data! It was created from an existing instance...and all the
> fields have values
>
> 'body': u'hello there', 'allow_comme
ting a ModelForm from an existing
> instance would give it valid data, but that's not the case. (Though
> the Django Documentation doesn't say this:
> http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ )
>
>
> On Mar 24, 12:15 pm, David Zhou wrote:
>> If it
On Tue, Jun 30, 2009 at 11:21 PM, Kenneth Gonsalves
wrote:
>
> has anyone succeeded in marrying django to twitter - that is broadcasting
> updates in the django db to twitter? I did see one post on the subject in the
> archives, but there was no information as to whether the operation was
> succe
See:
http://diveintopython.org/xml_processing/unicode.html
-- dz
On Sat, Aug 8, 2009 at 11:27 PM, Joshua Partogi wrote:
> u' stands for Python unicode.
>
> On Sun, Aug 9, 2009 at 12:03 PM, strotos wrote:
>>
>> Hey all,
>>
>> I am very new to Django and am having a bit of trouble with somethi
The easiest way is probably moving that list to the view. For example
customers = Customer.objects...
sellers = Seller.objects...
filtered_list = [pair for pair in zip(sellers, customers) if
pair[0].customer_id == pair[1].id]
Then pass filtered_list into the template context. Inside the
templ
http://tinyurl.com/mj29fw
-- dz
On Fri, Aug 14, 2009 at 2:54 PM, sniper wrote:
>
> I am trying to do pagination. Just wanted to know if there is a
> shortcut to show digg style pagination or i have to write my own?
> I am asking this because in the admin page, the list page uses digg
> style p
For what you describe, you're not looking for "global" variables in
the sense that you want some value persisted in the same process.
You're looking at session variables, which are variables persisted for
a specific user session.
See:
http://docs.djangoproject.com/en/dev/topics/http/sessions/
H
On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote:
> My problem is that even if the 'projects' queryset is empty, it still
> includes the projects.html
> Is there another way to do it?
If you're using at least Django 1.1, you can use the empty tag:
http://docs.djangoproject.com/en/dev/ref/templates
On Aug 21, 2009, at 9:54 AM, MIL wrote:
> this works fine but I dont want to repeat it in all my views:
> def my_profile(request):
> gotta_go_through = request.user.get_profile
> ().gotta_go_through_this_url()
> if gotta_go_through and gotta_go_through != request.path:
>
On Mon, Aug 24, 2009 at 3:29 PM, sandravigo wrote:
>
> Hi, friends. I have a problem.
> I created a function (main) that displays a list on the first page
> (index.html) of site administration. The problem is that for example,
> if I put in URLConf: (r '^ admin /(.*)',' myproject.views.main '),
>
On Thu, Aug 27, 2009 at 6:13 AM, Lewis
Taylor wrote:
>
> I have an imagefield that i want to create a thumbnail for on approval
> of the image. The problem is (setup is 2 django instances, load
> balancer and DB) if the image is stored on one machine it's not the
> cleanest solution to have to get
On Thu, Aug 27, 2009 at 7:09 AM, Maksymus007 wrote:
>
> I've got two different form on the same page, under the same URL.
> When I send one of them, the second one gets validated too.
> I set prefixes but no change.
>
> Is there any way to distinguish between two forms, choosing one that
> have be
On Thu, Aug 27, 2009 at 7:08 AM, Léon Dignòn wrote:
>
from django.contrib.auth.models import User
u = User.objects.get(id=1)
u
>
print u
> leon
type(u)
>
Alternatively:
>>> u.__class__.__name__
'User'
-- dz
--~--~-~--~~~---~--~~
You re
On Thu, Aug 27, 2009 at 6:58 AM, Matthias
Kestenholz wrote:
>
>> On Thu, Aug 27, 2009 at 2:59 PM, ankit wrote:
>>>
>>> I am new to django.I having to app in my admin.Know I want to know
>>> that how can i redirect user to one app listpage if clicks save on
>>> second app.say from app2 to app1
>>>
On Thu, Aug 27, 2009 at 7:33 AM, Maksymus007 wrote:
>
> On Thu, Aug 27, 2009 at 1:22 PM, David Zhou wrote:
>> Post the part of your view that handles your forms.
>
> Nothing special
>
> if request.method == 'POST':
> form = RegisterForm(re
On Thu, Aug 27, 2009 at 10:10 AM, gnijholt wrote:
> Or is there a better way to generate a full archive page (per year,
> per month)?
You'll need to test this, but you should be able to do that with {%
ifchanged %}:
#view:
posts = Posts.objects.order_by('-pub_date')
#template
{% for post in po
It shouldn't be too hard to add a last-updated timestamp to a model,
and compare it to a hidden field in the form validation.
-- dz
On Wed, Mar 25, 2009 at 11:49 AM, Daniel Watkins
wrote:
>
> Hello all,
>
> We recently ran into an issue when two people were editing a record via
> the admin in
Also see:
http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.symmetrical
-- dz
On Sat, Mar 28, 2009 at 11:57 AM, Alex Gaynor wrote:
>
>
> On Sat, Mar 28, 2009 at 10:55 AM, mahesh wrote:
>>
>> I am working on a (College) course manager project. Here is a
On Sun, Mar 29, 2009 at 7:14 PM, IanR wrote:
> I'm trying to stay a close to the suggested Django conventions as
> possible. I have a few variables that I need to render any page.
Check out context processors:
http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-pro
On Sun, Mar 29, 2009 at 9:50 PM, Joshua Partogi wrote:
>
> I thought we're to use hexdigest ?
>
> Did I miss something here?
You need to salt it:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py#L20
-- dz
--~--~-~--~~~---~--~~
Yo
1 - 100 of 145 matches
Mail list logo