On Nov 26, 6:57 am, "Steve Phillips" <[EMAIL PROTECTED]> wrote:
> Hi All
>
> I have been searching through the list and IRC archives all day and
> haven't found anything recent about changing the name that's displayed
> for a app on the admin page? Before I go and just 'write my way
> around it',
On Nov 25, 12:16 pm, Praveen <[EMAIL PROTECTED]> wrote:
> Hi All, i am very new bie of Django, i have started work on before 3
> days.
> I am following DJango book. I am playing with 6 chapter "Using the
> admin interface"
> In my urls.py file i set the url for admin
>
> from django.conf.urls.defa
Hi All,
Can Any one help me to resize all types of (like jpeg,gif ect)
images.
This code only useful to upload Jpeg images only. When I upload a
image 'thumbnail' folder has two images and when I delete the image only
one image is deleted from folder(Resized image or thumbn
Right you are Daniel, works like a charm, thank you!
/L
Daniel Roseman wrote:
> On Nov 25, 4:50 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote:
>> I'm trying to influence one of the admin interface change list
>> fields by using the below get_progress() method in list_display,
>> and using mark_safe
Hi All
I have been searching through the list and IRC archives all day and
haven't found anything recent about changing the name that's displayed
for a app on the admin page? Before I go and just 'write my way
around it', does anyone know of a shortcut to do it?
Thanks in advance,
Steve
--~--~
On Nov 26, 5:38 pm, Chris Amico <[EMAIL PROTECTED]> wrote:
> Right. And the PythonPath directive ought to do the trick, but it
> clearly isn't. The server belongs to a friend who gave me permission
> to everything under the redfenceproject.com directory (one above
> redfence), and I created the
Right. And the PythonPath directive ought to do the trick, but it
clearly isn't. The server belongs to a friend who gave me permission
to everything under the redfenceproject.com directory (one above
redfence), and I created the apps folder, so I'm not sure what the
problem is.
On Nov 25, 10:29 p
On Nov 26, 5:13 pm, Chris Amico <[EMAIL PROTECTED]> wrote:
> I have a handful of apps in that folder. I can add it to sys.path
> using sys.path.insert(0, path) and they import fine after, but that
> only lasts one session. How do I make it stick?
That is what PythonPath directive is for.
Graha
I have a handful of apps in that folder. I can add it to sys.path
using sys.path.insert(0, path) and they import fine after, but that
only lasts one session. How do I make it stick?
On Nov 25, 5:28 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-11-25 at 14:55 -0800, Chris Amico
Thanks Suganthi.
Yeah i added that line too and synchronize too but same error
occured...
Could not import admin.site. Error was: No module named admin.site
On Nov 26, 10:38 am, "suganthi saravanan"
<[EMAIL PROTECTED]> wrote:
> Hi Praveen,
>
> Check it!
>
> Have you added the following line in s
Hi Praveen,
Check it!
Have you added the following line in settings.py under the INSTALLED_APPS
'django.contrib.admin'
and synchronize the table . you can view the admin login from
http://127.0.0.1:8000/admin/
--~--~-~--~~~---~--~~
You received this message be
Thanks Sadeesh, this is what i wanted..ok let me go to your refered
site and follow each step and get back to you..
On Nov 26, 10:19 am, "Rishabh Manocha" <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 26, 2008 at 10:00 AM, Praveen <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
>
>
> > Hi All, i am very new bie o
It looks like I partly answered my own question. I just do something
like the below to get the field names of the empty model B and I will
iterate through the fields until 1 matches and then assign the
information.
This only prints out the field names.
property_field = FeaturedProperties()._meta
On Wed, Nov 26, 2008 at 10:00 AM, Praveen <[EMAIL PROTECTED]>wrote:
>
> Hi All, i am very new bie of Django, i have started work on before 3
> days.
> I am following DJango book. I am playing with 6 chapter "Using the
> admin interface"
> In my urls.py file i set the url for admin
>
> from django.
On Wed, Nov 26, 2008 at 9:59 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have the following code:
>
> ///
>
> b = Choice.objects.filter(choice=a.collection.id)
>for cb in b:
>discount_price = cb.price.name * Decimal(str(.75))
>cb.price.name = discount_price
>asse
Hi Sadeesh,
first of all i thank you for reply me..
Sadeesh i tried your code but again i am getting module error
Traceback erro:
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py",
line 132, in _get_callback
raise ViewDoesNotExist, "Could not import %s. Error was: %s" %
(mo
On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
> Django newbie here. I'm trying to get it to work under apache with
> mod_python on a freebsd server but running into problems. I searched
> the archives and found similar things, but I tried all the suggestions
>
Hi Everybody,
Django newbie here. I'm trying to get it to work under apache with
mod_python on a freebsd server but running into problems. I searched
the archives and found similar things, but I tried all the suggestions
and still no luck.
The error:
MOD_PYTHON ERROR
ProcessId: 11226
Hi Everybody,
Django newbie here. I'm trying to get it to work under apache with
mod_python on a freebsd server but running into problems. I searched
the archives and found similar things, but I tried all the suggestions
and still no luck.
The error:
MOD_PYTHON ERROR
ProcessId: 11226
Hi All, i am very new bie of Django, i have started work on before 3
days.
I am following DJango book. I am playing with 6 chapter "Using the
admin interface"
In my urls.py file i set the url for admin
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^blog/
Hello,
I have the following code:
///
b = Choice.objects.filter(choice=a.collection.id)
for cb in b:
discount_price = cb.price.name * Decimal(str(.75))
cb.price.name = discount_price
assert False, cb.price.name
///
Basically I'm just decreasing my price by 25%. How
On Tuesday 25 November 2008 11:28:10 pm TheIvIaxx wrote:
> Is there a common set of tools for this type of thing?
putty or develop using svn
--
regards
KG
http://lawgon.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On Tue, 2008-11-25 at 18:03 -0800, ChrisK wrote:
> OK, thanks for your suggestions (and yes, I meant "POST").
>
> The problem now appears to be how I initialize the form's value of
> auth_id!
Oh, right. I missed that error initially. Yes, you're doing it
incorrectly. The first positional argum
OK, thanks for your suggestions (and yes, I meant "POST").
The problem now appears to be how I initialize the form's value of
auth_id! If I use just
{{form.as_p}}
in my template, I get the following html:
(Hidden field auth_id) This field is
required.
This field is required.
Teaser:
This fiel
On Tue, 2008-11-25 at 15:06 -0800, ChrisK wrote:
> I'm just not getting this. I've looked at many examples and can't seem
> to pass a hidden value into a form.
>
> The problem is that I initially get to the form with GET, and then
> instantiate the form with PUT. The key that I need is part of t
On Tue, 2008-11-25 at 14:55 -0800, Chris Amico wrote:
> Hi folks,
>
> I'm having some trouble getting a directory onto my pythonpath. I'm
> sure I'm missing something obvious here.
>
> On my server, I have a directory with my django work called redfence.
> Inside is my project, along with a fol
On Nov 25, 6:24 pm, ChrisK <[EMAIL PROTECTED]> wrote:
> > Well..you aren't passing auth_id to the template, you are passing
> > form. auth_id is a field inside your template. Can you post your
> > template?
>
> Oh, sorry - my oversight. Template is
>
>
> id="id_auth_id" />
> Reminder String:
>
Its going to be running on apache, but right now im getting this error
on the development server for django. The PYTHONPATH in the error has
the project dir in it. I verified that PYTHONPATH has the project dir
from putty. Not sure what else to try. Oh and starting the shell
from a temp dir, i
> Well..you aren't passing auth_id to the template, you are passing
> form. auth_id is a field inside your template. Can you post your
> template?
Oh, sorry - my oversight. Template is
Reminder String:
URL of document:
Address of interest:
Range (in meters):
I guess I'm
On Nov 25, 5:06 pm, ChrisK <[EMAIL PROTECTED]> wrote:
> I'm just not getting this. I've looked at many examples and can't seem
> to pass a hidden value into a form.
>
> The problem is that I initially get to the form with GET, and then
> instantiate the form with PUT. The key that I need is part o
On Nov 25, 2:16 pm, "Jirka Vejrazka" <[EMAIL PROTECTED]> wrote:
> do you do any pickling or serializing of QuerySets? I do remember
> reading a blog (someone may be able to find the URL) where the author
> mentioned the same problem. He managed to find out that it was caused
> by changes queryse
I'm just not getting this. I've looked at many examples and can't seem
to pass a hidden value into a form.
The problem is that I initially get to the form with GET, and then
instantiate the form with PUT. The key that I need is part of the
original URL, and I'm trying to push it down into the PUT
Hi folks,
I'm having some trouble getting a directory onto my pythonpath. I'm
sure I'm missing something obvious here.
On my server, I have a directory with my django work called redfence.
Inside is my project, along with a folder called 'apps' holding all my
personal and third party apps. It's
On Tue, 2008-11-25 at 06:50 -0800, omat wrote:
> Hi,
>
> I am trying to update a object via admin interface. Nothing fancy, and
> it all goes well on my local environment, as it does many times
> before.
>
> But in the production site, I get an AttributeError:
>
> 'module' object has no attrib
I am hoping someone from this list may have some ideas on a solution
to a problem I am facing...
I am using a SortHeaders class to perform ascending and descending
filtering on table column headers. (The SortHeaders is found on
Django Snippets, http://www.djangosnippets.org/snippets/308/, and
wo
Thanks for the replies Jeff and Rajesh. I'll look int both of those options
and see what I can come up with. My model is set to have the name of the
project to be unique, so it was throwing an error if a duplicate was added.
Jeff, unfortunatly the initial list of CVS projects is just a string th
Hi Alex,
> Here is the code that I use. Output_list is from CVS and current_projects
> is from the database. Is there a faster way to do this, or a built in
> method in Python? This code works fine now, but I can see it getting slow.
>
> for b in output_list:
> found = False
>
Alex Jillard wrote:
> I've been working with Python and Django for the past week or so and thus
> far it's been great. My question is more of a general Python question than
> it is a Django question, but hopefully I can get some help or a link to an
> appropriate doc/website. So far I've not been
> I recently upgraded Django from 0.96 to 1.0.2 but noticed that the CPU
> load for the same site traffic jumped by 50%. Has anyone else noticed
> anything similar or might have any clue as to why this might happen?
Hi there,
do you do any pickling or serializing of QuerySets? I do remember
r
Hello.
I'm using Django v1.
When I want to add a column in an admin list page, I just create a
function in the associated model class and add it to the
"list_display" tuple in the same model class. For instance, if I
wanted to create a link to a reference id that would show up as a
column, I wo
Aneurin Price wrote:
> Hello,
>
> I'd like to be able to generate images dynamically for a Django-based
> website, and I'm wondering how best to go about it.
>
> The idea is to do certain things to existing images, such as
> superimpose them on a background. The set of base images will be
> more-or
I've been working with Python and Django for the past week or so and thus
far it's been great. My question is more of a general Python question than
it is a Django question, but hopefully I can get some help or a link to an
appropriate doc/website. So far I've not been able to dig up much useful
Model A has 50 fields. Model B has 20 of model A's 50 fields. I am
trying to make a nightly cron job that will make a queryset of model A
based on a filter and copy that information into model B. I also don't
want it to copy the information if it already exists in model B. Does
anyone know a good
Hello, I have a few different projects in which I need to combine the
data from 2 querysets from 2 different models. In one project I am
just trying to combine this information to export into a CSV file and
in another project I want to make a graph with the information. Is
there any easy way to do
Hello,
I'd like to be able to generate images dynamically for a Django-based
website, and I'm wondering how best to go about it.
The idea is to do certain things to existing images, such as
superimpose them on a background. The set of base images will be
more-or-less static; it's just the operat
Hi there,
I tried a very simple test to check the Jinja2 i18n, here is the code
(it is pretty much the same as the translate.py from jinja2):
from jinja2 import Environment
print Environment(extensions=['jinja2.ext.i18n']).from_string("""\
{% trans %}Hello {{ user }}!{% endtrans %}
{% trans cou
> I reran my tests with the latest version of Apache on my 8.10 test
> machine. I am no longer getting the Segfaults with either worker or
> prefork. I am now getting an Invalid SRS type "wkt" error (that I
> assume you are now running into).
Yup that's the error I got: http://code.djangoprojec
> I just moved my site to a production environment and i get
> this error when trying to view the admin stuff. I want to say
> its a path issue? If i use manage.py shell, i can import urls
> just fine. Any ideas on why this error is popping up?
My first thought concurs with your path issue. Wh
I personally like Komodo Edit
after trying komodo, I switched from pydev and eclipse to komodo;
On Nov 25, 10:56 am, "Antoni Aloy" <[EMAIL PROTECTED]> wrote:
> 2008/11/25 Kurczak <[EMAIL PROTECTED]>:
>
>
>
> > I wonder why no one mentioned Komodo IDE or Komodo Edit.
> > They're my perso
Justin,
I reran my tests with the latest version of Apache on my 8.10 test
machine. I am no longer getting the Segfaults with either worker or
prefork. I am now getting an Invalid SRS type "wkt" error (that I
assume you are now running into).
I have tried several things (including downgrading
I just moved my site to a production environment and i get this error
when trying to view the admin stuff. I want to say its a path issue?
If i use manage.py shell, i can import urls just fine. Any ideas on
why this error is popping up?
Request Method: GET
Request URL:http://X.X.X.X:8000/ad
David Zhou wrote:
> 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
>>>
I want that only dogs (no other animals from other groups) are listed
in the foreignkey drop down box for the representative_animal (which
would be all animals without modification) when I'm editing the
AnimalGroup dogs.
I finally hacked something together with the threadlocals middleware,
which
2008/11/25 Kurczak <[EMAIL PROTECTED]>:
>
> I wonder why no one mentioned Komodo IDE or Komodo Edit.
> They're my personal favorites for bigger projects. Both are well
> suited for dynamic languages and really lightweight compared to
> Bloatclipse with pydev (or aptana).
I have tested Komodo Edit
Aha, the 500 Error was template missconfiguredNow I am getting my
homeage printed in console when running command, but still need to ser WSGI
PARAMS
Please help
On Tue, Nov 25, 2008 at 8:43 PM, Oleg Oltar <[EMAIL PROTECTED]> wrote:
> Also
> [EMAIL PROTECTED] ~/TECHNOBUD $ python manage.py r
Also
[EMAIL PROTECTED] ~/TECHNOBUD $ python manage.py runfcgi >
text.txt
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI par
I wonder why no one mentioned Komodo IDE or Komodo Edit.
They're my personal favorites for bigger projects. Both are well
suited for dynamic languages and really lightweight compared to
Bloatclipse with pydev (or aptana).
--~--~-~--~~~---~--~~
You received this mes
Well, when I am trying to do it, I am getting 500 Error (shown in console)
Status: 500 INTERNAL SERVER ERROR
Content-Type: text/html
http://www.w3.org/TR/html
4/loose.dtd">
TemplateDoesNotExist at /
On Nov 25, 4:50 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote:
> I'm trying to influence one of the admin interface change list
> fields by using the below get_progress() method in list_display,
> and using mark_safe().
>
> However, I can't get this to work:
>
> class Job(models.Model):
> progr
2008/11/25 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hello Aloy,
>
> I saw the great work you did on ticket #5691. Thanks a lot, I highly
> appreciate that! We have to offer our first release with the bug, but
> I hope to be able to include your patch or a workaround for the next
> one and will g
Hi all,
I recently upgraded Django from 0.96 to 1.0.2 but noticed that the CPU
load for the same site traffic jumped by 50%. Has anyone else noticed
anything similar or might have any clue as to why this might happen?
Thanks
--~--~-~--~~~---~--~~
You received thi
On Tue, Nov 25, 2008 at 10:13 AM, Jeff Anderson
<[EMAIL PROTECTED]> wrote:
> TheIvIaxx wrote:
>> This isnt really a django specific question, but i figured some folks
>> have a similar setup and might be able to offer advice. I'm
>> developing my django site on vista and i have a server running l
I am very much interested in Newtonian solution of using a function to
fire off a data
processing script to run over the internet.
I will be very grateful if you can advise me on passing parameters
from an HTML form to button associated with a script and fire an
external script off to carry out
f
Thanks Karen and Malcolm,
I'll get back with a more thorough answer when I find more time.
I just wanted to leave a short note that I have verified that the
problem actually *is* somewhere in my view code.
I have been able to run another view containing floatformat and get
floats with decimal po
TheIvIaxx wrote:
> This isnt really a django specific question, but i figured some folks
> have a similar setup and might be able to offer advice. I'm
> developing my django site on vista and i have a server running linux/
> apache. Im not sure how to get all my files from the windows box onto
>
You have to start FastCGI demon that will handle request. For example by
using `./manage.py runfcgi`
command
On Tue, Nov 25, 2008 at 20:47, Oleg Oltar <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have a shared hosting. Need to place there my django application. I
> created ./.htaccess in my root direct
This isnt really a django specific question, but i figured some folks
have a similar setup and might be able to offer advice. I'm
developing my django site on vista and i have a server running linux/
apache. Im not sure how to get all my files from the windows box onto
the server. The linux box
You have to pass form instance to all pages context where it is used. You
can do it explicitly or write custom context processor or (the better
solution) write custom inclusion tag.
On Tue, Nov 25, 2008 at 20:13, Alfonso <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> I've put together a simple search fo
Hi!
I have a shared hosting. Need to place there my django application. I
created ./.htaccess in my root directory which contains following
[EMAIL PROTECTED] ~ $ cat ./http/.htaccess
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi
Hello Aloy,
I saw the great work you did on ticket #5691. Thanks a lot, I highly
appreciate that! We have to offer our first release with the bug, but
I hope to be able to include your patch or a workaround for the next
one and will give feedback once that's been done.
With regards,
Maik
--~--~-
It should be very useful to filter a select field in django admin when
selecting another field.
Somethin like:
fieldA = foreignKey(Country)
fieldB = foreignKey(State)
when user selects fieldA it should be shown only its states and not
all countries' states.
Is it possible? Someone wrote some sim
Hey,
I've put together a simple search form that works perfectly when
navigating to the corresponding url - '/search.html'. However I want
to reuse that form on multiple pages so where relevant I use {%
include 'search.html' %} to inject the form where I need it.
Problem is this form is devoid
> Based on comments in a separate thread, GeoDango may have issues with
> multithreaded configuration. Which Apache MPM was being used for each
> Apache version, prefork or worker? The worker MPM uses threads and so
> that could be the culprit.
Yes -- the libraries GeoDjango uses, GEOS and GDAL,
I'm trying to influence one of the admin interface change list
fields by using the below get_progress() method in list_display,
and using mark_safe().
However, I can't get this to work:
class Job(models.Model):
progress = models.PositiveSmallIntegerField()
def get_progress(self):
Hi,
Thanks for the wonderful inputs.
All right, I will give you the actual scenario and maybe you guys can help
me further:
I think the application should have 4 modules, interconnected with each
other and accessible via proper user perms:
1. The front office: This will have all student record
2008/11/25 Jeff FW <[EMAIL PROTECTED]>:
>
> Alessandro,
>
> I'm not exactly sure what you're asking, but I think you want to know
> how to check multiple fields (possibly against each other) when
> submitting a form in the admin. Let me know if I'm off-base here.
>
> Take a look at:
> http://docs.
Thank You all for your help; yes there was error in RegEx.
On Tue, Nov 25, 2008 at 10:01 AM, jai_python <[EMAIL PROTECTED]> wrote:
>
> modify ur url as
> (r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello')
>
> http://localhost:8000/hello/TEST
> then "print who" in ur view file.
>
> Lemme know
Alessandro,
I'm not exactly sure what you're asking, but I think you want to know
how to check multiple fields (possibly against each other) when
submitting a form in the admin. Let me know if I'm off-base here.
Take a look at:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-cust
Saurabh,
I have spent the past year developing a GUI application (using
wxPython) that communicates with a server (using Twisted), which
connects to a PostgresQL database (using SQLAlchemy.) It has been a
very rewarding experience learning and using all of these tools.
However, the learning curv
On 25 nov, 10:17, sajal <[EMAIL PROTECTED]> wrote:
> David/Daniel,
>
> Thanks a lot for the prompt responses, ill use the method as specified
> by Daniel.
>
> I had use methods earlier for get_absolute_url and stuff, but didnt
> realize i could use methods to do anything I wanted...
Well... Thi
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
>> using often, I'd add it to the model.
>>
> That's n
On 25 nov, 10:04, "David Zhou" <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 3:55 AM, sajal <[EMAIL PROTECTED]> wrote:
> > Now Id like to show age of the people along with their names.
>
> > I have a function which can calculate age callable via calculateAge
> > (p.date_of_birth) but how d
2008/11/25 Russell Keith-Magee <[EMAIL PROTECTED]>
>
> On Tue, Nov 25, 2008 at 5:27 PM, DragonSlayre <[EMAIL PROTECTED]> wrote:
> >
> > Hey, I'm getting started with a friend in developing a site with
> > Django, and we're both new to this, so I am wondering what people use
> > to manage all their
On Nov 25, 8:44 am, ReneMarxis <[EMAIL PROTECTED]> wrote:
> Hello Brian
>
> i allready saw those hints on the djangoproject/djangobook homepage
> and that was the reason i was writing this post.
> Imagine i am new to django, i read "i have to add those lines to my
> model and do some stuff on the
Hi,
I am trying to update a object via admin interface. Nothing fancy, and
it all goes well on my local environment, as it does many times
before.
But in the production site, I get an AttributeError:
'module' object has no attribute 'parse_file_upload'
The traceback (which dpaste refused to s
Yes they were able to help me fix the problem.
Thank you Peter.
On Nov 17, 1:00 pm, "Peter Herndon" <[EMAIL PROTECTED]> wrote:
> Hi DJ,
>
> Psycopg2 has a C extension wrapped by Python. That C extension must
> be compiled with the same compiler used to compile the Python compiler
> itself.
>
> T
Hello Brian
i allready saw those hints on the djangoproject/djangobook homepage
and that was the reason i was writing this post.
Imagine i am new to django, i read "i have to add those lines to my
model and do some stuff on the setting.py file and run syncdb" then
everything is ok and i can use g
I think David meant a method in the model not a field so nothing is stored.
//Thomas
2008/11/25 Steve Holden <[EMAIL PROTECTED]>
>
> 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
Woohoo! Looks like I solved it.
The error I had made was that inside my locale folders I had named
Swedish "sv_se" which wasn't right. I looked into the django/conf/
locale folder and saw that there they referred to Swedish as "sv". So
by changing the folder names Django finally found them.
Oh,
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
> using often, I'd add it to the model.
>
That's not very good advice, as the current age of a person changes with
time, and you are i
Hi David,
Try it!
If you are using (blank=true) inside the model class, validation disable.
class Gallery(models.Model):
name=models.CharField(max_length=200, blank=true)
Cheers
sugi
--~--~-~--~~~---~--~~
You received this message because you are subscri
> The error message is telling you exactly what the problem is here. It
> wants Position to have a ForeignKey to Member. When you read that and
> look at your models and see that you have Member having a ForeignKey to
> Position, you have to then think that perhaps that means you've got the
> inli
Donn, Daniel,
Thanks for your advice. I combined both your ideas together and now
have a solution to my problem.
It was pretty difficult though; that documentation is a little hard
core. For example, there were references to post_save_redirect
throughout the documentation but no explanation or e
I think pydev + eclipse + aptana is the best choice, just configure
correctly python PATH in pydev so the autocomplete works fine, debug
your code with the extra option runserver 8080 --noreload works fine
too, create external tools django commands, improve your pages with
aptana, use firefox as yo
On Tue, Nov 25, 2008 at 9:18 PM, Tim Chase
<[EMAIL PROTECTED]> wrote:
>
>> Check out django.contrib.auth.tests.views.py.
>
> Is there some master index of documentation for "if you want to
> test X, see Y.py or http://Z for an example of how to do it"?
> where X is any of a number of Django featur
Hi Praveen,
You add these lines you can get the admin interface...
Coding:
***
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/(.*)', admin.site
On Nov 25, 11:18 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Check out django.contrib.auth.tests.views.py.
>
> Is there some master index of documentation for "if you want to
> test X, see Y.py or http://Z for an example of how to do it"?
> where X is any of a number of Django features such as mo
> Check out django.contrib.auth.tests.views.py.
Is there some master index of documentation for "if you want to
test X, see Y.py or http://Z for an example of how to do it"?
where X is any of a number of Django features such as models,
views, templates, middleware, filters, template-tags, form
I'm using just gvim + some plugins (help.vim, autocomplpop.vim,
snippetsEmu.vim, ...). As for me, this is quite enough.
Have a nice day,
Nikolay.
On Tue, Nov 25, 2008 at 11:27, DragonSlayre <[EMAIL PROTECTED]> wrote:
>
> Hey, I'm getting started with a friend in developing a site with
> Dja
Hi All, i am very new bie of Django, i have started work on before 3
days.
I am following DJango book. I am playing with 6 chapter "Using the
admin interface"
In my urls.py file i set the url for admin
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^blo
1 - 100 of 142 matches
Mail list logo