I discovered Django when the 0.96 book appeared in the programming
section of reddit and I think it's too bad it is not getting updated
for the 1.0 version. I know that the information in the book is
redundant with the official documentation (which kicks ass) but I like
the way it is structured an
I don't understand what you are trying to do. Would you mind describing the
real life problem under it rather than how you try to solve it? It would
help understand what you need.
On Mon, Dec 1, 2008 at 2:10 PM, Stefan <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm new to Django and have some prob
I prefer to to just put the apps in the project's folder and put *that*
folder on the PYTHONPATH then move it elsewhere only when I find out I
actually need it elsewhere. To make it more portable, I find out where my
project is in my filesystem at runtime so if I move it around, it's no
problem.
S
That would work but I put them right at the root of my project, not in an
app folder so I just add 'blog' to my INSTALLED_APPS. Every distributable
app I saw is meant to be put somewhere directly in the PYTHONPATH and not in
a subpackage so I follow that rule.
If you put them inside an folder name
Should I start with the nfa branch or with trunk and update the code when it
is merged? Is there risks of breakage in nfa? Other issues?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
I'm starting the project in two weeks, hopefully, it will be merge then.
I cross my fingers.
--~--~-~--~~~---~--~~
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@goo
I was wondering when the 1.0alpha was due so I went to Trac and found this
page:
http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&milestone=1.0+alpha
There is only 10 tickets left before alpha is complete. I don't know for
you, but I'm going to check this page every
>
> The tickets don't tell the *entire* story, but yes, we're very close!
>
> Jacob
>
That's awesome!
Can we have many big-ass parties? If there's one near Montreal, I'm in! We
could set up a wiki page for that when the final release will be closer.
--~--~-~--~~~---~-
On Thu, Jul 17, 2008 at 10:53 PM, Joshua Jonah <[EMAIL PROTECTED]> wrote:
> Is this the best way to organize the files in Django?
>
> Not important, it's personal taste.
>
Although, it is most of the time preferable to use regex group in your URLs
rather than GET. It looks much nicer.
--~--~---
Django sets this for you if your database supports it (ie: you are using
postgres or mysql with innodb tables). If you are using mysql, check that
tables aren't MyISAM. If you want to do this inside Django, more complex
because if you change an object's primary key, Django concludes that you
want t
>
>
> Are you saying that Django adds the "ON UPDATE CASCADE" to the database
> definition? I've never noticed it doing this (unless you're using a
> patch that I submitted that does this for Foreign Keys where tell it to
> do so).
>
> Or, are you saying that Django emulates this behavior? I don't
> Most ideally we would like to have it so that the application uses DB1
> (defined in the settings.py file) as the main database, but when it's
> down to users, uses DB2.user as the users table.
> Currently we are thinking of using raw sql, but that would only be a
> last resort preferably. And at
On Mon, Jul 21, 2008 at 2:20 AM, Chris Ovenden <[EMAIL PROTECTED]>
wrote:
>
> Hi All!
>
> My first post here, though I've been using Django for about 6 months.
>
> I am building a site that will appear in three different languages
> (maybe more, later), which means that every text field has to hav
On Fri, Aug 22, 2008 at 2:20 PM, Delta20 <[EMAIL PROTECTED]>wrote:
>
> This question is aimed at those of you who, like me, come from a Java
> and C++ background and are used to being able to debug things with a
> debugger - setting breakpoints, stepping through code, evaluating
> expressions, etc
Are there other people in the Montreal area that would like to celebrate the
1.0 release?
--~--~-~--~~~---~--~~
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
Nice. Any other people?
Do you have any preference about where we should go?
On Wed, Aug 27, 2008 at 9:26 AM, didier rano <[EMAIL PROTECTED]> wrote:
> One more !
>
> 2008/8/27, Dan <[EMAIL PROTECTED]>:
>>
>> Are there other people in the Montreal area that w
> Yeah, ... a super user could have all permissions that are defined
> in a project for example. Wait a moment -- that's already true today!
> (See the User has_perm method)
He will have all permissions that will exist in the future too.
--~--~-~--~~~---~--~~
You
Hello,
I am trying to make an application that can log events (changes to the
database) from other django applications. To do this i am currently
using the post_save hook and post_delete hook to get any inserts,
updates or deletes however i am unable to get the user that caused
them.
Is there a
AttributeError: 'str' object has no attribute '_default_manager' from
related.py django 1.0.2
---get this error when
accessing any part of site
-
MOD_PYTHON ERROR
ProcessId: 2637
Interpreter:'TS1.
Thanks, that seems to be what was wrong. At least now I get a database
error. Still trying to figure it out. Not related I am sure. Removed
quoted references and the error went away.
On Mar 2, 10:58 am, Karen Tracey wrote:
> On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote:
>
> > At
or readings that could be suggested would be greatly appreciated.
Thanks,
Dan
--~--~-~--~~~---~--~~
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
Url pattern below r^sip/conf and sip/createfile work for development
server but Apache comes up with a 404 error. Note that the error is
shown as Apache error not Django parsing error. So, is it Apache not
using the Python interpreter or something with Django? Note that
changing the name to statio
Looks like I had a sip directory under my templates so was confusing
Apache I guess. Anyway, fixed now so thanks. Renamed it as noted
above.
On Mar 4, 9:10 am, Rajesh Dhawan wrote:
> Rajesh D wrote:
> > On Mar 4, 9:58 am, Dan wrote:
> > > Url pattern below r^sip/conf and s
* want to share a pool of IP Addresses which are unique for both
model Plc and model Station. Want to use Admin for adding Plc's and
Stations. As is, if I try to use an IP address used within model PLC
for another PLC it fails validation as expected. If I try to use an IP
address assigned to a
dle
this for me.
Example:
/project
/core
/models
__init__.py
blog.py
-- __init__.py: --
from blog import *
for model in locals.values():
if inspect.isclass(model) and issubclass(model, models.Model):
model._meta.app_label = '
a nice DRY way to get the kind of
structured composition that I want?
Side question: Is there another python ORM that could address my need
better?
Thanks,
Dan.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hi,
I'm pretty new to Django, and I'm trying to create a few simple tests
for my project. I've created a very basic fixture and I'm trying to
just load it and see that the data is there. Nothing big. I've read
the documentation here:
http://docs.djangoproject.com/en/dev/topics/testing/
but I must b
ot something working now.
Thanks for your help.
On Apr 15, 4:07 pm, Karen Tracey wrote:
> On Thu, Apr 15, 2010 at 3:32 PM, Dan wrote:
> > Hi,
> > I'm pretty new to Django, and I'm trying to create a few simple tests
> > for my project. I've created a very basic
OK, just as I suspected, I was doing something silly. I was
subclassing TestCase from unittest instead of django.test. I fixed
that, and all is well now. Thanks again for the help.
On Apr 15, 5:11 pm, Dan wrote:
> Thanks. Actually, that was the first thing I tried. I think I saw some
>
I have been using CentOS 5 to run Django sites with Apache + Mod WSGI
mostly in VPS environments.
I want to upgrade to a new OS as CentOS runs an old version of python
and it seems that it's not so easy to upgrade it.
What do people recommend?
--
You received this message because you are subscr
Hi,
I have some troubles with my Django model: whenever I create a new
object the ID (primary key) is not being assigned to it after calling
obj.save().
I am on RHEL with Python 2.4.3 and Django 1.2.1 (with MySQL backend).
I've uploaded a code snippet which clearly shows the problem:
http://past
Hi,
On 24 Aug., 14:10, Karen Tracey wrote:
> If you want automatic assignment, you need to make
> it an AutoField with primary_key=True.
thanks a lot, that fixed it!
Regards,
Daniel
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
d need to be imported by "import
lib.models.ModelFileName". If you do not know what I am talking about,
this is what I mean:
http://www.nomadjourney.com/2009/11/splitting-up-django-models/
Any other ideas?
Regards,
Dan
--
You received this message because you are subscribed to the Goo
pp_label for my models beforehand.
Thanks for the advice!
Regards,
Dan
--
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
g Q objects to filter through Item.objects.all() list
in the meantime.
Thanks,
Dan
--~--~-~--~~~---~--~~
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
))
class Meta:
model = ProductMember
exclude = ('product')
How do I go about getting the 'userprofile' varible in to this class?
Or is there some better other way to do this?
Thanks in advance
Dan
--~--~-~--~~~---~--~~
You r
(AddMemberForm, self).__init__(*args, **kwargs)
self.fields['member'].queryset =
Member.objects.filter(userprofile=obj)
class Meta:
model = ProductMember
exclude = ('product')
On Apr 11, 12:29 am, Dan <[EMAIL PROTECTED]> wrote:
> Hi
>
>
I Just had a problem with this and it came down to the PIL component
on my server not having jpeg support, maybe try installing libjpeg and
rebuilding and installing PIL.
On Feb 15, 6:59 am, Michael Newman <[EMAIL PROTECTED]> wrote:
> As I continue to test this, it appears that inlineimagefield
seems like I need to reference the session_key variable before I
can use it. Can anybody explain why?
Thanks a bunch,
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hello!
I'm new to Django, so please forgive my newbness :)
The following is my model:
class City(models.Model):
name = models.CharField(maxlength=100)
class Person(models.Model)
name = models.CharField(maxlength=100)
city = models.ForeignKey(City)
class Book(models.Model)
name
There is a functionality which I am interested in and I wonder what is
the cleanest and most foward compatible way of doing things.
I want models to sprout a suggest() method which would work like
save() but keep the data in some structure elsewhere that do not
modify the original data. Any regul
Did you take a look at Django Signals? You can intercept pre-save and
post-save objects with them. You can use that to grab the data you
want and fill your ProjectModification object. I don't know if there
is a way you could tell if it was done in the admin or not though...
--~--~-~--~---
You'll have to do something like this:
Country(models.Model):
name = models.CharField(max_length = 100)
boders = models.ManyToManyField('self')
Meta:
verbose_name_plural = "countries"
BorderLength(models.Model):
countryA = models.ForeignKey(Country)
countryB = models
On Tue, Jun 17, 2008 at 5:22 PM, Norman Harman <[EMAIL PROTECTED]> wrote:
>
> Dan wrote:
>> There is a functionality which I am interested in and I wonder what is
>> the cleanest and most foward compatible way of doing things.
>>
>> I want models to sprout a su
Microsoft ditched classic ASP.
"It's unsupported" usually carries some weigth as an argument with bosses.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
I am looking for a way to enable users to make template to control the
presentation of reports that they would require. I am looking for the
most flexible to them and most secure to me way to do this. I want to
be careful since the data serve would come from my domain and thus be
vulnerable to ori
There's also ExtJS that has great client-side validation:
http://extjs.com/deploy/dev/examples/form/dynamic.html
Ext has a a few built-in validations (must not be empty, must be a
valid e-mail, must be in a range, etc.) but if what you need isn't
there, you just create a function that returns a b
The right way to transition according to Guido is to port to 2.6, run
with warnings on, cover everything with unit tests, check if
everything works right, run 2to3 to convert, see if everything is
still alright, fix problems in 2.6, rerun 2to3, etc...
Since Django supports Python from 2.3, they'l
Bump!
Does anyone have any pointers?
On Sun, Jun 22, 2008 at 5:13 PM, Dan <[EMAIL PROTECTED]> wrote:
> I am looking for a way to enable users to make template to control the
> presentation of reports that they would require. I am looking for the
> most flexible to them and most s
This isn't related to Django the framework but Django the musician, I
figure you'd find it interesting anyway.
I saw in the newspaper this morning that a group from Quebec called
The Lost Fingers released an album called Lost in the 80's where they
play well known songs in Django Reinhardt style.
> Hi folks,
>
> I'm trying to champion Django trunk/1.0 as part of a small project in
> a mid-sized city newspaper office. There is some worry about choosing
> a framework which does not currently have a stable release.
Django has a stable release (0.96), it will have an *API-stable*
release when
I
would create a nested list in the view to pass to this template tag.
I am a first time user of Python and Django, any help with this would
be greatly appreciated, thanks in advance.
-Dan
--~--~-~--~~~---~--~~
You received this message because you are subs
for station in line.station_set.all %}
{{station.name}}
{% endfor %}
{% endfor %}
{% endfor %}
On Oct 1, 4:38 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Oct 1, 3:28 am, Dan <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello All
>
> > I seem to be h
seems to work but just for one custom criteria at a time.
Could someone please recommend a good way to solve this issue so i can
produce a queryset with all these search criteria, thanks.
-Dan
--~--~-~--~~~---~--~~
You received this message because you are s
seems to work but just for one custom criteria at a time.
Could someone please recommend a good way to solve this issue so i can
produce a queryset with all these search criteria, thanks.
-Dan
--~--~-~--~~~---~--~~
You received this message because you are s
e a basic custom tag just to pass
the value back and it just displays _("Page not found")
any ideas?
Thanks -Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
Ok thanks I will try that out!
-Dan
--~--~-~--~~~---~--~~
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
n
distance?
object.filter(point__dwithin=(point,distance))
Cheers
-Dan
--~--~-~--~~~---~--~~
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@googlegroup
odel3" rows. Is there a techinique available
to handle this? Strictly speaking, I don't necessarily need the nested
view to appear on the same page, as a link to the "Model3" view would
suffice.
I'm just getting my feet wet with Django, an
Please do not license your code with GPL.
On Thursday, September 9, 2010 12:38:19 AM UTC+2, sebastien piquemal wrote:
>
> I created a library to address this kind of problems :
> http://code.google.com/p/django-cube/
>
> It bases the aggregation on a multidimensional view of your data (a
> cube
I am trying to make an app where each user will have like a mailing
list for which they should be-able to create custom fields for any
data they may want to hold and be able to save multiple rows of that
data.
I was thinking to use a model to hold the fields definitions and a key
value system to h
#x27;Property1' ?
Thanks
-Dan
--
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.co
Hi,
Long time lurker - first time poster - hopefully future answerer...
Basically what I want to do can be done with:
result = [w for w in MyModel.objects.all() if
w.foo_set.filter(endtime__gt = datetime.datetime.now()).exists()]
Is there anyway to do this using the queryset api?
Hopefully it'
Thanks Shawn
That's helpful. I was actually looking at the manager documentation
today thinking perhaps that was what I needed - but couldn't quite
wrap my head around it. But knowing that it indeed is the way to go
will no doubt provide the motivation I need.
(I have problems learning anything
;s the same as "SELECT DISTINCT" in sql - so is perhaps
not very efficient... That should provide a bit of a motivation boost
at least.
Thanks for the help.
On Feb 20, 5:00 pm, Lior Sion wrote:
> Dan,
>
> If I understand your question correctly, you are struggling with
>
I am trying to migrate backwards on 1 app using:
./manage.py migrate app_name 0001
But it it is migrating all apps back to 0001
Am using django 1.7 am i doing something wrong?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe fro
ng to fix it?
--
Dan
--
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
Thanks for all the replies. I have no problems connecting to anything else,
only the Django Project site.
At least I know now it's on my end.
--
Dan
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
I'm using Django 2.2 on a new project and suddenly the autoreloader is
looping when I change a file
DEBUG:
/urls.py. is_changed: False, is_new: True
/urls.py previous mtime: None, current mtime: 1556221457.0
/urls.py notified as changed. Signal results: [(, None)].
/urls.py changed, relo
Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox
guest, I'm not sure that has something to do with it?
On Thursday, April 25, 2019 at 10:06:59 PM UTC+2, Dan wrote:
>
> I'm using Django 2.2 on a new project and suddenly the autoreloader is
> looping w
Hi Ramiro
Thanks for answering.
Tried stable 2.2.1 and it looks like it is working ok now.
The folder is a virtualbox shared folder, shared from an osx host.
Thanks for your help!
On Tuesday, April 30, 2019 at 12:33:58 AM UTC+2, Ramiro Morales wrote:
>
> Hi Dan,
>
> On Fri, Apr 26
I'm Interested.
My WhatsApp number is +2205192833.
On Sunday, February 18, 2024 at 10:48:48 AM UTC-6 Jorge Bueno wrote:
> The project:
>
> I am working on an exciting project that I think you may be interested in.
> It is an online marketplace, similar to the US farmers and livestock
> markets,
alid). This
should invoke your clean_ method.
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]> | http://www.fezconsulting.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
There's a django bundle for textmate
(http://macromates.com/svn/Bundles/trunk/Bundles/Python%20Django.tmbundle/).
I don't use textmate's autocomplete stuff very much, but there's some in
there.
eka wrote:
> Hi all,
> How can I make my TextMate to autocomplete django?
> I have django on my site
template tags.
http://www.djangoproject.com/documentation/templates/
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]> | http://www.stereoplex.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
> I haven't used any of them with Django, but for managing Zope, Plone
> and Grok based web apps, zc.buildout is the current preferred tool.
I use zc.buildout to manage my Django builds. Blog post coming soon
(when the project's finished!)
Cheers,
Dan
--
Dan Fairs <[EMAIL
First of all, congratulations to the team on reaching 1.0. It looks
like a lot of good features landed in time.
One thing that I still find messy, though, is the whole user/profile
thing. Having separate models for users and profiles has a number of
drawbacks:
* extra DB hits
* having to tra
> My problem is that for some reason spammers have latched onto this
> form, creating a lot of grief when our circulation people are trying
> to send out the requests.
>
> Nearly all of the spammers follow a pattern, giving random strings for
> their address, city and email, like this:
> City:
at
they've read. For example:
ReaderBooks Read
--
--
Claire SmithGreat Expectations
Jane Eyre
Wuthering Heights
Dan Smith Great Expectations
On Oct 8, 11:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> They won't. Django is Python first and foremost. So modules must have
> legal names.
So what about all those Django apps with hyphens in their names?
--~--~-~--~~~---~--~~
You received this messa
There isn't really anything Django-specific here, although there might
be helper apps. But take a look at FlowPlayer, which is a free,
customisable Flash video player (I think it plays both FLV and H.264).
For converting videos, ffmpeg is the thing, and a quick Google
suggests there are at least a
models/fields/__init__.py" in __cmp__
102. return cmp(self.creation_counter,
other.creation_counter)
Exception Type: AttributeError at /admin/fc/album/1/
Exception Value: 'str' object has no attribute 'creation_counter'
Local vars:
other 'id'
self
Thanks for any sugges
On Jan 19, 11:03 am, Dan Jewett wrote:
> Maybe I'm just implementing this incorrectly, but if anyone is using
> this extension maybe you could shed some light on this error.
>
> When I try to add or save my Model I get:
> AttributeError: 'str' object has
,
you could try adding the file to environment variables. Specifically, you
would add:
C:\Python26\Lib\site-package\django\bin\django-admin.py
You can try this link for an explanation of how to edit the environment
variables:
http://www.computerhope.com/issues/ch000549.htm
Cheers,
Dan
On Mon,
Executing the url "http://127.0.0.1:8000/admin"; gives me a Template
error with the problem area being: {% url django-admindocs-docroot as
docsroot %}
(the actual error dump is at the bottom of this explanation.)
/Volumes/Data1/Caster/gallery/items/urls.py causes the problem: (See
it below)
The p
Karen, you made me feel real stupid. BUT I LOVE YOU!
I read that over and over and couldn't see it. Also I didn't know what
the heck "group name" meant.
Thanks a million.
Dan
On Mar 11, 2:10 pm, Karen Tracey wrote:
> On Wed, Mar 11, 2009 at 12:46 AM, Tokyo Dan wrote:
Thanks Malcolm. I'll try and look into this when I have a little time. It
would be nice to be able to contribute
Cheers,
Dan
On Thu, Mar 19, 2009 at 6:38 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Thu, 2009-03-19 at 12:53 -0700, Dan wrote:
> > Hi
an AlreadyRegistered exception, plus I can't
see that way how I'd filter data to a specific 'page_type' in the
Model.
Any help would be greatly appreciated.
Thanks,
Dan Ward.
--~--~-~--~~~---~--~~
You received this message because you are subscr
Hi,
First of all thanks for the replies. I won't be able to try anything
until tomorrow, however it has given some food for thought.
Malcom, the three admin entries is what I'm looking for. Essentially,
I'm aiming to have the admin home page display the pages block as so:
Pages (admin group)
--
'project.app.foo'. Why is it
that the project is only sometimes included in the module name? I've seen
this issue generally in Python, and I think there's something major about
the language I'm missing right now and would love to have it clarified.
Thanks,
Dan
On Fri, Mar 2
To follow up,
I can see how I can achieve different forms, however I can't figure
out how to provide three separate links in the admin index page.
Any suggestions?
On Mar 22, 11:22 am, Dan Ward wrote:
> Hi,
>
> First of all thanks for the replies. I won't be able to t
should only show only relevant 'Video' fields. This
should also be the case for 'Message' and 'Website' pages (the other
two pgtype values).
I really don't want to start going down the route of model redesign to
have separate tables. Especially as the database is alr
I have been looking for a way to apply and manage my model changes to my
db schema. This came out of a brainstorm yesterday afternoon. Just
wanted to pass the idea through the community to see where it fits, if
anywhere, upstream.
The general idea is to save sqlall output from manage.py. You t
On 06/29/2009 10:48 AM, ariest wrote:
> Sorry, this is the actual code:
>
> views.py
>
> def parent(request):
> user = request.user
> key = user.get_profile().link
> p = Parent.objects.get(pk = key)
> children = p.children.all()
> if request.method == 'POST':
> fo
I want to create a web application that access videos from many
different websites such as YouTube, Google Video, etc. The app should
be able to store all the necessary information that would later allow
the site to access a particular video. For instance, if the user
inputs the URL http://www.you
:
http://docs.djangoproject.com/en/dev/
Dan
--~--~-~--~~~---~--~~
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
n here, they didn't submit the form, or they did
and there were errors, so render it back
return render_to_response('my_template.html', {'form': form})
This is how I do it, If you have any further questions I can try to
help
What do you mean by having the ID "in" the form? I don't quite
understand what you are trying to do.
On Jul 21, 4:15 pm, mettwoch wrote:
> Ok, I come back to what I wrote before. If the partner already exists
> it has an id (primary-key or whatever). If it doesn't exist it has no
> id. I'd just
Oh I gotcha now.
Django model forms by default do not represent auto fields (ID's)
because it wouldn't make much sense for a user to be able to edit the
PK in a form. Having said that, I do understand why you need to be
able to see the PK.
I shown in my example, I personally prefer to represent
s html
return HttpResponse(t.render(c))
For more info refer to:
http://docs.djangoproject.com/en/dev/ref/request-response/
Cheers,
Dan
On Jul 22, 12:49 pm, Ogre wrote:
> I have a model where I need to be able to insert template tags into a
> TextField in the admin as part of the conte
1 - 100 of 474 matches
Mail list logo