Hy guys,
Many thanks for your replies, a brief but strong lessons about python and
shell.
Indeed, I went for a solution similar to what Malcolm suggested. I am using
a file with env variables to be loaded.
Thanks a lot guys again. The webserver is up and now we are just tunning the
feel&look and
we have same structure events class in both sites.
Both sites use the same events database, and an events is associated
with one or more sites
It lets the site producers edit all events -- on both sites -- in a
single interface (the Django admin).
so my doubt is:
Is it necessary to write events cl
Recently, I see some dictionary of Ruby, ROR and jQuery for Mac.
How to build a Django and python dictionary for mac?
thanks
On Thu, Feb 12, 2009 at 12:33 PM, Alex Gaynor wrote:
>
>
> On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote:
>>
>> Hi all,
>>
>> Should the release tarball maybe cont
I put 15 minutes expiry/session cookie age in my django app
1) I logged into my application
2) I went to some page.
3) Left that page open in browser.
4) Came back after 16 minutes and clicked on a link on that open page
5) I was thrown to login home page.
As a user it is very confusing, did I do
Ohh I see. I'll reinstall a newer one. Thanks!
On Feb 11, 9:27 pm, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 10:26 PM, rg wrote:
>
> > 2.2.3.
>
> > On Feb 11, 12:21 pm, Alex Gaynor wrote:
> > > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
>
> > > > So I'm trying to install Django on a Linux
On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote:
>
> Hi all,
>
> Should the release tarball maybe contain pre-build html and pdf
> documentation?
> That might be handy for those who don't want to install sphinx/latex etc.
>
> Cheers,
>
> Will
>
> >
>
There was a fairly long thread about this j
http://pastebin.com/m78d7486f
http://docs.djangoproject.com/en/dev/ref/contrib/sites/ i have
reffered this link but i have doubt shall i keep Article model's
class
in both site.
On Feb 11, 7:37 pm, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 2:11 AM, Praveen
> wrote:
>
>
>
>
>
>
>
> > lets as
Hi all,
Should the release tarball maybe contain pre-build html and pdf documentation?
That might be handy for those who don't want to install sphinx/latex etc.
Cheers,
Will
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Wed, 2009-02-11 at 19:50 -0800, ydjango wrote:
> Thanks, I will read the documentation.
> Hopefully it will tell me how to differentiate between user who logged
> out because they clicked on logout and users who got logged out
> because of inactivity and expiry.
There is no difference between
Thanks, I will read the documentation.
Hopefully it will tell me how to differentiate between user who logged
out because they clicked on logout and users who got logged out
because of inactivity and expiry.
On Feb 11, 6:33 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-02-11 at 15:43 -0800, ydja
On Feb 12, 12:09 pm, Malcolm Tredinnick
wrote:
> On Tue, 2009-02-10 at 10:56 +, Alan wrote:
> > Hi list,
>
> > My problem is that: since when using apache + mod_wsgi I got a neutral
> > env for my server (e.g. PATH=/usr/bin:/bin) but in the end what I need
> > is all the envs that is in a
On Wed, Feb 11, 2009 at 10:26 PM, rg wrote:
>
> 2.2.3.
>
>
> On Feb 11, 12:21 pm, Alex Gaynor wrote:
> > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
> >
> > > So I'm trying to install Django on a Linux server (I don't have root
> > > access) and when I run
> > > $ python setup.py install
> >
>
2.2.3.
On Feb 11, 12:21 pm, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
>
> > So I'm trying to install Django on a Linux server (I don't have root
> > access) and when I run
> > $ python setup.py install
>
> > I get the following error:
>
> > File "setup.py", line 48, in
On Wed, Feb 11, 2009 at 9:01 PM, Tim Johnson wrote:
> I installed from the tarball, and I see the docs directory beneath the
> initially extracted directory and a makefile. So now my questions is:
> What is Sphinx and where do I get it?
The documentation covers this:
http://docs.djangoproject.
On Wednesday 11 February 2009, Alex Gaynor wrote:
> If you installed it with your system's package manager it may not have
> included the docs directory, you can always download the tarball from the
> Django site and extra the docs dir only.
I installed from the tarball, and I see the docs dir
On Wednesday 11 February 2009 02:13:53 pm Alex Rades wrote:
> On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote:
> > I don't know about django-profiles, but django-registration provides a
> > couple signals, user_registered and user_activated. By connecting a
> > handler to either one of these
On Wed, 2009-02-11 at 15:43 -0800, ydjango wrote:
> Ok , so timeout happens on browser (client ) side, then i need to
> figure out some javascript to do detect that.
No, you don't.
>
> I was hoping in django there is way to detect that no session cookie
> was sent or session cookie is expired
Yes, I am work on a python 2.3 environment now.
Thanks a lots. I will import set datatype.
On Thu, Feb 12, 2009 at 10:24 AM, Alex Gaynor wrote:
> datatype
--
A man live in jail and want to break.
http://blog.khsing.net
--~--~-~--~~~---~--~~
You received this
On Wed, 2009-02-11 at 11:18 -0800, SnappyDjangoUser wrote:
> Sorry for my recent absence in replies I was away from this work
> for a short while, but I am now back.
>
> In response to Graham's question, I am not running multiple Django
> applications on the same host. This is one Django app
On Wed, Feb 11, 2009 at 9:20 PM, khsing wrote:
>
> Yes, that was I wanted. This case like I know you, but you don't know me.
>
> I notice when symmetrical argument added, a group object has
> related_name_set object, so I can write code like this.
>
> def all_group(user):
>groups = []
>fo
On Wed, 2009-02-11 at 19:29 +0300, Dmitry Dzhus wrote:
> Leslie Maclachlan wrote:
>
> > I would expect the url to show as: http://intranet/MV_Edit_Employee/1/
> >
> > But, it shows up as:
> >
> > http://intranet/var/opt/django/projects/ilayer/MV_Edit_Employee/1/
> >
> > Everything still workds, b
Yes, that was I wanted. This case like I know you, but you don't know me.
I notice when symmetrical argument added, a group object has
related_name_set object, so I can write code like this.
def all_group(user):
groups = []
for group in user.group_set.all():
if not group in group
On Wed, 2009-02-11 at 08:58 -0800, May wrote:
> Hello,
>
> I have spent too much time on this problem and am beginning to think
> that it
> can't be done in Django. I am pulling a list of pathogen names from a
> postgres
> database to a drop down box. The user selects the pathogen, which
> requi
On Wed, 2009-02-11 at 06:30 -0800, Gonzalo wrote:
> Hello:
>
>
> Sorry if this is foolish, i'm prety noob in django, and not very good
> in english
>
> I have a country id stored in a session...
>
> I have a form, it have a country CHOICE field
>
> In the form, could i mark as selected the
On Wed, Feb 11, 2009 at 9:06 PM, khsing wrote:
>
> Alex, thank you very much.
>
> I find if g1 belong g2, g2 will belong g1 automatically, but that is not
> right.
>
> should I rewrite models like this one?
>
> groups = models.ManyToManyField('self', symmetrical=False)
>
>
> On Wed, Feb 11, 2009
Alex, thank you very much.
I find if g1 belong g2, g2 will belong g1 automatically, but that is not right.
should I rewrite models like this one?
groups = models.ManyToManyField('self', symmetrical=False)
On Wed, Feb 11, 2009 at 10:40 PM, Alex Gaynor wrote:
>
>
> On Wed, Feb 11, 2009 at 2:29
On Wed, 2009-02-11 at 10:45 +, Tim Sawyer wrote:
> Hi,
>
> We're building an application with django on top of a legacy database and
> we've hit a problem with a to_field option being ignored. We've
> reproduced it with the latest svn version of django and a different
> database (oracle -> s
On Tue, 2009-02-10 at 16:22 -0800, lazyant wrote:
> Thanks a lot Jeff.
>
> I figured out the problem which was a bit more complicated than that
> but basically was also what you said.
>
> I downloaded the sqlite3 client and that helped too.
>
> What throw me off (among other things) is that in
On Feb 11, 8:01 am, Bobby Roberts wrote:
> there shouldn't be really. The client has a search form and due to
> the way they want the search done there are about 40 option checkboxes
> for filtering in about 5 categories. It would have been easier if a
> filter with IN could have been used but
On Tue, 2009-02-10 at 15:37 -0800, Adam Nelson wrote:
> I'm looking at the documentation here:
>
> http://docs.djangoproject.com/en/dev/ref/templates/builtins/#regroup
>
> And am looking for the best practices way to deal with doing that from
> within the manager.
You point to documentation f
On Tue, 2009-02-10 at 10:56 +, Alan wrote:
> Hi list,
>
>
> My problem is that: since when using apache + mod_wsgi I got a neutral
> env for my server (e.g. PATH=/usr/bin:/bin) but in the end what I need
> is all the envs that is in a particular $HOME/.bashrc file in order to
> when server
[Starting a new thread might have been helpful here. You seem to have
replied to an old thread from January, but not at all related to that
thread (except that the word "signals" is mentioned).]
On Tue, 2009-02-10 at 09:02 +, Ben Eliott wrote:
> Can anyone please suggest why a signal might b
Alex,
That's the one. And it works!
Just for once it wasn't my fault - and I can go to bed (it's after
midnight, again).
Thanks so much for that.
Have a good day/evening/morning...
Phoebe.
On Feb 12, 12:04 am, Alex Gaynor wrote:
> On Wed, Feb 11, 2009 at 7:02 PM, phoebebright
> wrote:
>
>
If you downloaded using svn then it is in trunk/docs which is at the
same level as trunk/django not inside it.
On Feb 11, 11:59 pm, Tim Johnson wrote:
> On Wednesday 11 February 2009, Alex Gaynor wrote:
>
> > Every django tarball or svn checkout includes a docs/ dir that has the full
> > docs
On Wed, Feb 11, 2009 at 7:02 PM, phoebebright wrote:
>
> It sounds like it. I've tried to get the version 9765 as suggested
> but I don't think I have the right syntax:
> [r...@viv site-packages]# svn co
> http://code.djangoproject.com/svn/django/trunk/
> 9765
> [r...@viv site-packages]# svn co
>
It sounds like it. I've tried to get the version 9765 as suggested
but I don't think I have the right syntax:
[r...@viv site-packages]# svn co http://code.djangoproject.com/svn/django/trunk/
9765
[r...@viv site-packages]# svn co http://code.djangoproject.com/svn/django/trunk/
r9765
[r...@viv site
On Wed, Feb 11, 2009 at 6:59 PM, Tim Johnson wrote:
>
> On Wednesday 11 February 2009, Alex Gaynor wrote:
>
> > Every django tarball or svn checkout includes a docs/ dir that has the
> full
> > docs, you can build these into HTML, latex, pdf whatever using Sphinx.
> Sorry, but I can't find a doc
On Wednesday 11 February 2009, Alex Gaynor wrote:
> Every django tarball or svn checkout includes a docs/ dir that has the full
> docs, you can build these into HTML, latex, pdf whatever using Sphinx.
Sorry, but I can't find a docs/dir path. Looking
under /usr/lib/python2.5/site-packages/djang
Ok , so timeout happens on browser (client ) side, then i need to
figure out some javascript to do detect that.
I was hoping in django there is way to detect that no session cookie
was sent or session cookie is expired and then redirect to a page
with message " For your security, you have been
On Thu, Feb 12, 2009 at 12:06 AM, Andrew Ingram wrote:
>
> 2009/2/11 Alex Gaynor :
>> This is another case of generating work for someone as far as I can tell,
>> sphinx autogenerates the make file for us, we didn't write it. To switch to
>> some other system means to rewrite work that we didn't
twampss [2009-02-11, 23:14 +0100]:
Hi,
> I've been following James Bennett's "Practical Django Projects"
> alongside of Brett Haydon's very helpful post
> http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html
> and came across an issue when wanting to change the format of the U
On Wed, Feb 11, 2009 at 6:30 PM, phoebebright wrote:
>
> I thought I had a custom widget which would allow images to be deleted
> working and was dead chuffed (http://groups.google.com/group/django-
> users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef?
> lnk=gst&q=admin+image#c22f87e85b5
I thought I had a custom widget which would allow images to be deleted
working and was dead chuffed (http://groups.google.com/group/django-
users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef?
lnk=gst&q=admin+image#c22f87e85b5d78ef) but unfortunately it doesn't
work. I have spent the who
On Wed, Feb 11, 2009 at 6:05 PM, Tim Johnson wrote:
>
> I've installed django on my linux computer.
> I find documentation online at http://docs.djangoproject.com/
> I do not find documentation as part of the django install.
> Is documentation available for download?
> Thanks
> Tim
>
> >
>
Every
I've installed django on my linux computer.
I find documentation online at http://docs.djangoproject.com/
I do not find documentation as part of the django install.
Is documentation available for download?
Thanks
Tim
--~--~-~--~~~---~--~~
You received this message
Hey guys does anybody can drive me to a code example of a kinda
beforeSave callback, to perform logic before saving Model data, or
Related Models data?
dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
Karen,
Spot on! Changed field name to directory and all is well.
Thanks so much.
Phoebe.
On Feb 11, 8:57 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 3:19 PM, phoebebright
> wrote:
>
>
>
> > Karen,
>
> > Have done a stripped down version and still getting the error so put
> > the reque
On Wednesday 11 February 2009 02:13:53 pm Alex Rades wrote:
> On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote:
> > I don't know about django-profiles, but django-registration provides a
> > couple signals, user_registered and user_activated. By connecting a
> > handler to either one of these
Yep,
I'm a bginner with Django, but translating it into CakePHP (based on
Rails) I would like to define a kind of relation where, given the:
- Foreign key of let's say the News.id
- the Foreign_model_name (i.e News)
I get the News.category of a specific item
While just retriving the News Categ
You were right - all the paths were right except one. When the upload
dialog loads it looks for /media/tinymce_2/jscripts/tiny_mce/
tiny_mce_popup.js and I had tiny_mce installed straight off media.
Phew. All working on Mac, awaiting the news on PC.
Never got YUI working - it uploads the files
On Wed, Feb 11, 2009 at 9:39 AM, koranthala wrote:
> (1)
>Could somebody let me know whether this is usual? Am I missing
> some basic viewpoints which is causing me to write far too much code
> than necessary? i.e. Am I or am I not following Django framework
> properly?
No, this app
Hello!
Here's my problem. I am trying to design a simple wiki-like CMS, with
3 different types of editable pages.
1. Text
2. Images
3. Audio
All of these 3 have their own class, derived from an abstract base
class which contains things shared in common by them all (is this page
locked, last_cha
I've been following James Bennett's "Practical Django Projects"
alongside of Brett Haydon's very helpful post
http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html
and came across an issue when wanting to change the format of the URLs
in my blog application.
For any blog entry,
On Wed, Feb 11, 2009 at 10:43 PM, Mike Ramirez wrote:
> I don't know about django-profiles, but django-registration provides a couple
> signals, user_registered and user_activated. By connecting a handler to
> either one of these singals you can redirect the users to the profile form
> page.
>
>
if i follow your question - you'd want a ForeignKey in CategoryItem to
your Category model, so you can add both your News object and Product
object to the same category through CategoryItem. then you'll be able
to iterate through all of the items in a categoroy with something like
`mycategory.cat
Hi, I'm writing a custom tag that will take in two tokens: one
describing an instance of a "Page" object, the other naming the
CharField that I want to retrieve from that specific Page. The tag
would then find that Page object, find the appropriate field, and feed
the context of that field into a
Got Pdb working (though still want to get django_extensions going) and
here is my problem again - how do I display an object. It's fine if I
know what the attribute are, but how do I tell??
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/field
> Hi all,
>
> I'm new in this group and I have to say that my English is very poor
> so sorry.
Welcome to the group!
> I've the follow problem, I want to put in one of my base templates
> (that it's include in main base template) a list of one model, for
> example a Category model that has a rel
On Wednesday 11 February 2009 01:19:14 pm Alex Rades wrote:
> It's "django-profiles" not "django-profile"
>
> On Wed, Feb 11, 2009 at 10:15 PM, Alex Rades wrote:
> > Hi,
> > I'm developing a site using django-registration and I'm pretty happy
> > with it. Now, I need to attach a profile to each us
I am trying to dynamically add forms to a form wizard. Initially the
form wizard subclass is instantiated with three forms as follows:
# from urls.py
(r'^add/$', RecipeWizard([HeaderForm, IngredientForm, BodyForm])),
The idea is that a user will add any number of ingredients to a
recipe, so the
On Wed, Feb 11, 2009 at 4:24 PM, KrcK wrote:
>
> Hi all,
>
> I'm new in this group and I have to say that my English is very poor
> so sorry.
>
> I've the follow problem, I want to put in one of my base templates
> (that it's include in main base template) a list of one model, for
> example a Cat
Hi all,
I'm new in this group and I have to say that my English is very poor
so sorry.
I've the follow problem, I want to put in one of my base templates
(that it's include in main base template) a list of one model, for
example a Category model that has a relationship with other model like
Post
OK. Installed django extentions and can see the extra commands when I
type python manage.py help but there seems no difference in the
traceback screen? Have tried putting both django_extensions and just
extensions in the INSTALLED_APPS area, and installed Werkzeug and
watched Eric's excellant In
It's "django-profiles" not "django-profile"
On Wed, Feb 11, 2009 at 10:15 PM, Alex Rades wrote:
> Hi,
> I'm developing a site using django-registration and I'm pretty happy
> with it. Now, I need to attach a profile to each user, with some
> additional information. I've set up django-profiles an
Hi,
I'm developing a site using django-registration and I'm pretty happy
with it. Now, I need to attach a profile to each user, with some
additional information. I've set up django-profiles and... works OK
too :)
What I'd like to do now is to "force" a new user to fill his profile.
Is there any f
On Wed, Feb 11, 2009 at 3:19 PM, phoebebright wrote:
>
> Karen,
>
> Have done a stripped down version and still getting the error so put
> the requested code here: http://dpaste.com/119483/ and
> http://dpaste.com/119486/.
>
> using Django version 1.1 pre-alpha,
>
> Thanks for your interest! Have
I figured this out. I had to override the get_formset method. This
seems a little hackish, but it worked.
class ConfigV2ParameterInline(admin.TabularInline):
model = ConfigV2Parameter
def get_formset(self, request, obj=None, **kwargs):
self.extra = 'add' in request.path and 10
On Feb 11, 6:53 pm, Kevin Audleman wrote:
> I have the same session. Django has been so slick so far I would
> imagine it has a way to access session variables from a template. Have
> you found the solution?
>
> Kevin
See the documentation for context processors - the 'request' one is
the what y
2009/2/11 Karen Tracey :
> On Wed, Feb 11, 2009 at 3:01 PM, phoebebright
> wrote:
>>
>> I need to see the contents of some objects that are passed as
>> parameters into a function. I can stop the function (assert false)
>> and look at the traceback, but it doesn't tell me the contents of the
>>
On Wed, Feb 11, 2009 at 3:01 PM, phoebebright wrote:
>
> I need to see the contents of some objects that are passed as
> parameters into a function. I can stop the function (assert false)
> and look at the traceback, but it doesn't tell me the contents of the
> objects. I have tried print statem
Karen,
Have done a stripped down version and still getting the error so put
the requested code here: http://dpaste.com/119483/ and
http://dpaste.com/119486/.
using Django version 1.1 pre-alpha,
Thanks for your interest! Have to finish this tonight.
Phoebe.
On Feb 11, 7:30 pm, Karen Tracey
I need to see the contents of some objects that are passed as
parameters into a function. I can stop the function (assert false)
and look at the traceback, but it doesn't tell me the contents of the
objects. I have tried print statemnts, pickle and pprint. I don't
want to stray into the methods
On Wed, Feb 11, 2009 at 1:36 PM, phoebebright wrote:
>
> I am following the instructions at the bottom of this page
>
> http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-and-reverse-relations
> and here
> http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield
>
> I
igorlash wrote:
> Russ Magee , I've got a question personally to you.
> Why do we need to use make ? Why this build can't be done without make
> but only with python ?
Who cares as long as "make html" works? Until you started this thread, I
had never built the docs. I have a full-time Internet con
On Wed, Feb 11, 2009 at 2:30 PM, Joshua Russo wrote:
> Thanks so much. I think you are right. I will let you know tomorrow if
> I was able to fix it. I just need to figure out where the encoding is
> set in NetBeans and Textpad. I use a combination of both of them.
>
> It's possible that I didn't
Sorry for my recent absence in replies I was away from this work
for a short while, but I am now back.
In response to Graham's question, I am not running multiple Django
applications on the same host. This is one Django app on one host.
Malcolm, thank you for the brief introduction to sessi
On Feb 11, 4:54 pm, Ramiro Morales wrote:
> On Wed, Feb 11, 2009 at 3:29 PM, Joshua Russo
> wrote:
>
> > Ok, I'm still having issues.
>
> > I'm using Django 1.0.2-final and Python 2.5.4
>
> > The models.py starts with the proper encoding string of: # -*- coding:
> > utf-8 -*-
>
> Adding that en
I have the same session. Django has been so slick so far I would
imagine it has a way to access session variables from a template. Have
you found the solution?
Kevin
On Jan 17, 1:15 pm, dahpgjgamgan wrote:
> Hi,
>
> A simple scenario:
> - A generic object detail view, on which I can vote for
On Feb 11, 6:03 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 12:29 PM, Joshua Russo
> wrote:
>
>
>
> > Ok, I'm still having issues.
>
> > I'm using Django 1.0.2-final and Python 2.5.4
>
> > The models.py starts with the proper encoding string of: # -*- coding:
> > utf-8 -*-
>
> Except appar
Sorry for my recent absence in replies I was away from this work
for a short while, but I am now back.
In response to Graham's question, I am not running multiple Django
applications on the same host. This is one Django app on one host.
Malcolm, thank you for the brief introduction to sessi
I am following the instructions at the bottom of this page
http://docs.djangoproject.com/en/dev/topics/db/models/#inheritance-and-reverse-relations
and here http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield
I have a parent class Directory and a child classes Business, Tourism
On Wed, Feb 11, 2009 at 12:29 PM, Joshua Russo wrote:
>
> Ok, I'm still having issues.
>
> I'm using Django 1.0.2-final and Python 2.5.4
>
> The models.py starts with the proper encoding string of: # -*- coding:
> utf-8 -*-
>
Except apparently your file is not actually encoded in utf-8, see below
Leave it empty
FORCE_SCRIPT_NAME =''
On Wed, Feb 11, 2009 at 8:36 PM, Leslie Maclachlan wrote:
> Thanks Dmitry,
>
> I entered it as: FORCE_SCRIPT_NAME = '/var/opt/django/projects/ilayer' this
> has not resolved it - did I put it in the correct format?
>
> Regards,
> Leslie
>
> Dmitry Dzhus wro
On Wed, Feb 11, 2009 at 3:29 PM, Joshua Russo wrote:
>
> Ok, I'm still having issues.
>
> I'm using Django 1.0.2-final and Python 2.5.4
>
> The models.py starts with the proper encoding string of: # -*- coding:
> utf-8 -*-
Adding that encoding string isn't enough, the other thing you need to be
On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
>
> So I'm trying to install Django on a Linux server (I don't have root
> access) and when I run
> $ python setup.py install
>
> I get the following error:
>
> File "setup.py", line 48, in ?
>root_dir = os.path.dirname(__file__)
> NameError: name
On Wed, Feb 11, 2009 at 12:19 PM, Edgard Matos wrote:
> Anybody help me?
>
> On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos wrote:
>
>> Hi!
>>
>> I have a model with a DateField and I'm setting the input_formats
>> properties to "%d/%m/%Y":
>> birth_date = forms.DateField(input_formats=("%d/%m/%Y"
So I'm trying to install Django on a Linux server (I don't have root
access) and when I run
$ python setup.py install
I get the following error:
File "setup.py", line 48, in ?
root_dir = os.path.dirname(__file__)
NameError: name '__file__' is not defined
How should I fix this? I thought m
Anybody help me?
On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos wrote:
> Hi!
>
> I have a model with a DateField and I'm setting the input_formats
> properties to "%d/%m/%Y":
> birth_date = forms.DateField(input_formats=("%d/%m/%Y",))
>
> When I go add a object in this format ("%Y/%m/%d"), the dj
On Wed, Feb 11, 2009 at 1:07 PM, Bfox wrote:
>
> I really like the admin pages. I want to figure out how to show the
> "list page" to all users (even when anonymous), but I don't want
> anonymous users to be able to edit the data (obviously). I looked at
> databrowse, but as far as I can tell,
hi dan -
a little further down on the contenttypes doc page you link to there
is documentation on the generic foreign key mechanism bundled with the
contenttypes app:
http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1
pretty similar to what you describe ;)
On Wed, Feb 11, 2009 a
On Feb 11, 4:11 pm, gbd wrote:
> Another point (sorry I should have said this in my original post)
>
> My form is bound
> i.e. in my view
> form = RecipeForm(request.POST)
> I don't believe that I can use initial in this case?
>
> please let me know if I've misunderstood
>
> thanks again!
>
> On
I really like the admin pages. I want to figure out how to show the
"list page" to all users (even when anonymous), but I don't want
anonymous users to be able to edit the data (obviously). I looked at
databrowse, but as far as I can tell, it is not tabular.
The table I am referring to has the
Thanks Dmitry,
I entered it as: FORCE_SCRIPT_NAME = '/var/opt/django/projects/ilayer'
this has not resolved it - did I put it in the correct format?
Regards,
Leslie
Dmitry Dzhus wrote:
> Leslie Maclachlan wrote:
>
>
>> I would expect the url to show as: http://intranet/MV_Edit_Employee/1/
>>
Thanks for all your help it's much appreciated. I will work with both
methods and see if i can get them to work!
Thanks again
On Feb 11, 12:13 pm, Daniel Roseman
wrote:
> On Feb 11, 4:11 pm, gbd wrote:
>
>
>
> > Another point (sorry I should have said this in my original post)
>
> > My form is
On Feb 11, 1:38 pm, Ramiro Morales wrote:
> On Wed, Feb 11, 2009 at 11:22 AM, Joshua Russo
> wrote:
>
> > I'm developing an app and want to use Portuguese characters in the
> > verbose field names for my models. The tables were created fine but
> > when I tried to implement the admin pages I re
any idea ;o)
sorry if I ask again!
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 em
On Tue, Feb 10, 2009 at 8:11 PM, djandrow wrote:
>
> I've move it just to the apache2.2 file so my conf is now:
>
> Options Indexes FollowSymLinks
>
>
>SetHandler python-program
>PythonHandler django.core.handlers.modpython
>SetEnv DJANGO_SETTINGS_MODULE akonline.settings
>Python
I could've swore I tried that before posting my question and it didn't
work, but I tried it this time and it did. Anyhow, a long winded way
of apologizing for asking a simple question. Thank you for taking the
time to answer!
Kevin
On Feb 10, 3:41 pm, Alex Gaynor wrote:
> On Tue, Feb 10, 2009 a
Cheers Jake,
given the code:
--
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
class CategoryItem(models.Model):
name = models.CharField(max_length=200)
content_type = models.ForeignKey(C
You can do the same trick with django:
Entry.objects.extra(select={'foo_upper': 'upper(foo)'},
order_by=['foo_upper'])
On Wed, Feb 11, 2009 at 7:20 PM, jeffhg58 wrote:
>
> I currently have a field which has upper and lower case characters. Is
> there a way for the django api to ignore case usi
1 - 100 of 161 matches
Mail list logo