I know there's been talk about changing/enhancing the admin interface
but I'm not sure where my idea would fit. One thing I've noticed is
that as you add more models to the interface, it can get a little more
confusing about how they're categorized. What if we created the
capability to
Using pre magic removal I got this error:
Exception Type: ProgrammingError
Exception Value:ERROR: unterminated quoted string at or near
"'F28T8/841 T8 4'' " at character 419 select count(a.id) from
uv2_applications as a inner join uv2_rebatableobjects as r on
a.ro_id=r.id inner
Hi,
James Crasta, over at django-developers talks about a patch he wrote to
django 0.95 for making django work easily in a fastcgi environment.
See:
http://groups.google.com/group/django-developers/browse_thread/thread/eb7ddd45ec78883f/b3914435747e139c
He's intending to do a write up on it
Petar,
how was your object added? I had that problem when using the create
function and save, for example using the model:
class B(models.Model):
date = models.DateField(auto_now_add=True)
a = models.ForeignKey(A)
doing this considering "object" is an object of class A, this produces
"Este DVD se autodestruirá en 48 horas"
DVDs que se autodestruyen en 48 horas
Este viernes ha desembarcado en Italia un nuevo invento de la industria
cinematográfica para combatir las descargas ilegales en Internet. Es
un DVD en el que su información se borra pasadas 48 desde que se abre
la
Hi -
I'm relatively new to Django, and have a question about site & project
organization.
I have several sites that I'd like to develop using Django. Some of
these sites are "top-level" (site1.domain.com, site2.domain.com) and
some that fall under an existing hostname
class Paper(models.Model):
# ...
submited_on = models.DateField(
auto_now_add=True,
)
# ...
The above will spit out:
Exception Type: ValueError
Exception Value:year is out of range
Exception Location:
On 5/5/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote:
> This is drifting waaay off topic but here's the short answer :)
> http://wiki.opendarwin.org/index.php/DarwinPorts:Getting_Started#Adding_DarwinPorts_to_your_Terminal.27s_path
>
On 5/5/06, jbrewer <[EMAIL PROTECTED]> wrote:
>
> How do I get things "on my path"? Where is the file that points all
> this stuff together?
This is drifting waaay off topic but here's the short answer :)
How do I get things "on my path"? Where is the file that points all
this stuff together?
Thanks for all the help guys
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On 5/6/06, Victor Godoy Poluceno <[EMAIL PROTECTED]> wrote:
Hello,This error occurred when having access the repository snv of developmentof django, for download of the current version of django.[[EMAIL PROTECTED] Django]$ svn co
http://code.djangoproject.com/svn/django_src/svn: Requisição REPORT
Jeremy Dunck wrote:
> On 5/5/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote:
> ...
> #Addedamorepowerfulwayofoverridingmodelmethodsremovedhardcoded_pre_save_post_saveetc.
You can thank Trac for that. Apparently somebody forgot to tell them
that it might be a good idea to truncate after so
On 5/5/06, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:
>
> "Joseph Kocherhans" <[EMAIL PROTECTED]> writes:
>
> > Yeah, it hasn't been implemented yet. I'd be (pleasantly) surprised to
> > see it finished before the end of the summer. Your best bet is to use
> > ForeignKey and/or OneToOneField.
"Joseph Kocherhans" <[EMAIL PROTECTED]> writes:
> Yeah, it hasn't been implemented yet. I'd be (pleasantly) surprised to
> see it finished before the end of the summer. Your best bet is to use
> ForeignKey and/or OneToOneField. It's probably not exactly what you
> want, but it should work. Note
Hello,
This error occurred when having access the repository snv of development
of django, for download of the current version of django.
[EMAIL PROTECTED] Django]$ svn co http://code.djangoproject.com/svn/
django_src/
svn: Requisição REPORT falhou em '/svn/!svn/vcc/default'
svn: REPORT de
On 5/4/06, jbrewer <[EMAIL PROTECTED]> wrote:
>
> I have tried to install the MySQLdb and keep getting this error:
>
> error: command 'gcc' failed with exit status 1
>
> at the end of a bunch of stuff.
Yeah, that "bunch of stuff" just might be important. ya know. Keep in
mind you also would need
On 5/5/06, jbrewer <[EMAIL PROTECTED]> wrote:
>
> If I just run "port install py-sqlite" I get a -bash: port - command
> not found. But if I use PortAuthority (GUI) then it does it.
>
> I am wondering if the darwin port folder is located in /opt/local/bin
> and the other stuff (svn, fcgi) is in
Hi,
I ave the exact same problem.
I have also setup mod_fastcgi on my home box and then fired up my site
locally. Got the same error.
Please help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
If I just run "port install py-sqlite" I get a -bash: port - command
not found. But if I use PortAuthority (GUI) then it does it.
I am wondering if the darwin port folder is located in /opt/local/bin
and the other stuff (svn, fcgi) is in /usr/local/bin how are these guys
talking to eachother?
On 5/5/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
>
> On Fri, May 05, 2006 at 06:23:48PM -, jbrewer wrote:
> > But when I used DarwinPorts of SQLite it installed Python 2.4 here:
> >
> > /opt/local/bin - and located here also is sqlite3
>
> Remember, I said to look at ALL of the comments
On Fri, May 05, 2006 at 06:23:48PM -, jbrewer wrote:
> But when I used DarwinPorts of SQLite it installed Python 2.4 here:
>
> /opt/local/bin - and located here also is sqlite3
Remember, I said to look at ALL of the comments from
http://www.djangoproject.com/documentation/install/
which
On 5/5/06, Steven Armstrong <[EMAIL PROTECTED]> wrote:
> > How do I remap this?
As well as Steven's suggestions, Learning Python covers module pathing
issues nicely. :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Victor : in that post it says that _post_save() is called twice, I
tryed to create that _post_save() but I see nobody calls it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On 5/5/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote:
...
#Addedamorepowerfulwayofoverridingmodelmethodsremovedhardcoded_pre_save_post_saveetc.
Does the Guinness book of records have an entry for "longest anchor"? ;-)
--~--~-~--~~~---~--~~
You received this
On 05/05/06 20:23, jbrewer wrote:
> Okay when I am looking at the sitepath I have all my python stuff
> coming from here:
>
> /System/Library/Frameworks/Python.framework/...
>
> But when I used DarwinPorts of SQLite it installed Python 2.4 here:
>
> /opt/local/bin - and located here also is
On 5/5/06, Davide Bertola <[EMAIL PROTECTED]> wrote:
>
> Victor : in that post it says that _post_save() is called twice, I
> tryed to create that _post_save() but I see nobody calls it.
_post_save is a hook method that was used before the magic-removal
branch was merged. Now you just override
On Fri, May 05, 2006 at 12:20:35PM -0500, James Bennett wrote:
> Keep in mind that's a wiki that *anyone* can contribute to, not just
> "official" developers ;)
And... because it's a wiki... have their contributions deleted too.
(mine were)
--
Glenn
Hi,
I have web server that is accessed both via http and https is there a
way for me to tell which is used?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On Friday 05 May 2006 11:39, Honza Král wrote:
> I agree, but at least it works...
> it would be nice to have this at least at a module level...
Yeah, I was thinking about doing that, or some other nice solution.
Ideally it would handle it invisibly, but once you get into it, it's a
slightly
Okay when I am looking at the sitepath I have all my python stuff
coming from here:
/System/Library/Frameworks/Python.framework/...
But when I used DarwinPorts of SQLite it installed Python 2.4 here:
/opt/local/bin - and located here also is sqlite3
How do I remap this?
dade wrote:
> In my model I have something like this :
>
> def Image(modes.Model):
> ...
>
> def save(self):
> print "I've been called"
> ...
> super(Image, self).save()
>
> I see in the console the print is executed 2 times when I upload the
> image from the
yes this is a known bug.
see ticket 639
http://code.djangoproject.com/ticket/639
currently I'm using an ugly work around such as
def save(self):
if self.imagefield :
#do whetever, files does exist...
also this seems to cause problems withe DateFields with auto_now...
In my model I have something like this :
def Image(modes.Model):
...
def save(self):
print "I've been called"
...
super(Image, self).save()
I see in the console the print is executed 2 times when I upload the
image from the admin interface. Is that a bug ? known
It looks like I'm not the only one thinking about these ideas, Django
devs themselves have proposed this as one of the ideas for SOC coders:
"create a project and super user with one command line statement, fire
up the development web server, and import/create/refine your model
using live data
Howdy folks --
A quick note: the Summer of Code application period closes in only
three days! We haven't received all that many applications yet, so
if you turn in a good one you've got a very good chance that you'll
be accepted.
So what are you waiting for? Get those applications in!
yes, syncdb is for current trunk (post magic removal).
please notice that if you're using 0.91, you can use the old
documentation from here:
http://www.djangoproject.com/documentation/0_91/
but if you're just getting started updating to the dev version is your
best bet.
cheers
arthur
I am currently using 0.91. I am going to get the latest Dev version
with sub version. Then it should all work better?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
yes, same thing here.
strangely enough, I have a model with a foreign key acting as a
list_fillter and it's fine.
another model (same app) list filters wont't work (foreign key or not)
.
this was working a little while ago.
still looking into it...
On 5/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I'm new so bear with me :) What should I be using instead of
> "manage.py syncdb" for the DB stuff? I am attempting to do the
> Tutorial on the site but i have noticed there have been changes to the
> Framework since the tutorial was
On 5/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I want to use Model Inheritance, so I read this article
> http://code.djangoproject.com/wiki/ModelInheritance
> but it seems that it's only a proposal and has not been implemented,
> right?
> Does it mean that I can't use it at this
Excellent! Thanks!
Todd
On May 5, 2006, at 8:58 AM, [EMAIL PROTECTED] wrote:
>
> If you wish to use your Django ORM outside of Django context,
> you will need refine your PYTHONPATH and
> DJANGO_SETTINGS_MODULE env variables. From your outside-django
> script, you can do the following:
>
>
Hey guys,
I'm new so bear with me :) What should I be using instead of
"manage.py syncdb" for the DB stuff? I am attempting to do the
Tutorial on the site but i have noticed there have been changes to the
Framework since the tutorial was made.
Thanks
Christopher
If you wish to use your Django ORM outside of Django context,
you will need refine your PYTHONPATH and
DJANGO_SETTINGS_MODULE env variables. From your outside-django
script, you can do the following:
import sys, os
os.environ['DJANGO_SETTINGS_MODULE'] =
'your_django_project.settings'
On 5/5/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> How possible is it to use the ORM part of Django separate from
> everything else?
You can freely use your apps in every way you need: web, cli, gui or smth. else.
Just instal django as usual, make your app, manage it with manage.py,
put it
How possible is it to use the ORM part of Django separate from
everything else?
I'm planning to use Django for a webapp, but I'm also working on a
GUI app that has to connect to remote server for database access and
other stuff. Can I leverage the Django ORM in the GUI server/client
app,
Hi Malcolm,
If you wish I could give you Trac access to my code - just e-mail me.
Regards,
PS: I too am using the latest svn code (rev. 2847 at this moment)
--
Petar Marić
*e-mail: [EMAIL PROTECTED]
*mobile: +381 (64) 6122467
*icq: 224720322
*skype: petar_maric
*web: http://www.petarmaric.com/
I agree, but at least it works...
it would be nice to have this at least at a module level...
On 5/5/06, DavidA <[EMAIL PROTECTED]> wrote:
>
> But for every model? Sounds a little kludgy to have to add that to
> every model just to break them into separate files.
>
>
> >
>
--
Honza Král
E-Mail:
On Fri, 2006-05-05 at 12:16 +0200, [EMAIL PROTECTED] wrote:
> > {% for data in mydict.items %}
> > key: {{ data.0 }}
> > value: {{ data.1 }}
> > {% endfor %}
>
> Thanks for you answer ... but I still have a problem : how to do a real
> dictionnary lookup.
> {% for data in mydict.items %}
> key: {{ data.0 }}
> value: {{ data.1 }}
> {% endfor %}
Thanks for you answer ... but I still have a problem : how to do a real
dictionnary lookup.
Here is an example of what I'm trying to do :
parent = {4 : 'parent1',
On Fri, 2006-05-05 at 11:46 +0200, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I've trouble to understand how it is possible to deal (i.e. work) with
> python dictionnaries in django templates
>
> Say I have a dictionnary that is called mydict, how can I iterate
> through it's keys/values : I can
Hi Petar,
On Fri, 2006-05-05 at 11:32 +0200, Petar Marić wrote:
> Anyone?
Sorry for the delay in responding; it can be frustrating when you're
beating your head against a problem like this.
Using the latest svn code (post magic-removal merge) and something based
on your example (DjangoUser is
Hi all,
I've trouble to understand how it is possible to deal (i.e. work) with python dictionnaries in django templates
Say I have a dictionnary that is called mydict, how can I iterate through it's keys/values : I can get the keys ...
{% for keys in mydict%}
{{ keys }}
{%
Anyone?
--
Petar Marić
*e-mail: [EMAIL PROTECTED]
*mobile: +381 (64) 6122467
*icq: 224720322
*skype: petar_maric
*web: http://www.petarmaric.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Let me refine the situation:
[model A] -> foreign key on [model B] -> foreign key on [model C]
When I create [Model A], it may only refer to any [model B]
that is attached to a specific [model C].
If I get it right, I should create a custom AddManipulator,
with a [model C] as its parameter. A
On Thursday 04 May 2006 18:41, James Bennett wrote:
> Per the model documentation, 'blank=False' does only apply when
> entering a value in the admin[1].
Well, "If a field has blank=True, validation on Django's admin site will allow
entry of an empty value." was not explicit enough for me to
A web-based model editor is not an easy task. I think vi is the right
modeller tool (after a paper/pencil session) or emacs if you're a
pianist.
For GUI-tools-aficionados I'd rather devote the effort to write code
generators for apps like umbrello
[http://uml.sourceforge.net/index.php]. A lot
On Thursday 04 May 2006 18:29, Clint Ecker wrote:
> Check these threads out. The short answer is, "it's coming." :)
Hey, great to know!
Having recently dived into django, I was not aware of these discussions.
Thanks for having pointed them out to me.
--
Kilian CAVALOTTI
57 matches
Mail list logo