Hi, Django developers:
I am very new here, trying to set up my Django
I have a project called 'mysite'
when I run:
$ django-admin.py runserver
the terminal gives:
Error: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined
then I tried this:
$ export DJANG
If you have installed psycopg2 then are you able to load psycopg2 from the
Python Command Prompt? Try this below and see if import works from command
line...
$ python
Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "c
I am using Python27, Django and wanted to us Postgresql, but I am
having problems.
When I start a new project and run syncdb for the first time I get an
error.
\postgresql_psycopg2\base.py line24."Improperly
Configured: Error loading psycopg2 module: no medule named psycopg2"
On Sat, Jan 15, 2011 at 10:48 AM, Victor Hooi wrote:
> heya,
> I'm just wondering whether you are allowed to use hyphens in Django
> app/project names?
> When I try to create either an app or a project with hyphens in the name, I
> get an error:
>
> Error: 'django-library' is not a valid app name.
heya,
I'm just wondering whether you are allowed to use hyphens in Django
app/project names?
When I try to create either an app or a project with hyphens in the name, I
get an error:
Error: 'django-library' is not a valid app name. Please use only numbers,
letters and underscores.
However, I
On Fri, Jan 14, 2011 at 11:44 AM, Pete wrote:
DjangoCon Europe 2011 just got announced:
>
> http://www.djangoproject.com/weblog/2011/jan/14/djangocon-eu-2011-announced/
>
> I was wondering if there are any updates on DjangoCon US 2011?
>
> I believe it was announced back in November of 2010 ->
ht
Thanks ojii, and the whole team.
I dropped off the radar for a few months because my RealJob(tm) keeps getting
in the way, but I need to upgrade my site as it's running off a very old
(pre-publisher-fix) git version.
I hope to integrate the RC3 code on my dev site over the weekend, and if all
Thanjs -- I'll give that a shot.
On Jan 14, 9:16 am, bruno desthuilliers
wrote:
> The canonical way to encode search arguments in an URL is to use the
> querystring.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
On Wed, Jan 12, 2011 at 1:11 PM, Micah Carrick wrote:
> I cannot use uuid4().hex because that's 32 characters... I need <30.
uuid4().hex[:30] is almost as random as uuid4().hex
There are no timers, MAC addresses, or other non-random sections in a
UUID4, so taking any 30-character slice from it s
We have a feature of our django application where the user will enter a
zipcode, and out site will lookup that zipcode against a database table and
return the city and state. In order for us to do this, we have a ZipCode
model, and a 22 thousand line initial_data.json fixture.
The problem is th
Django CMS is a pluggable app. It's not a collection of things like Pinax. You
either add it to your project (and give yourself a CMS), or not.
Here's a brief overview:
1. Install the app in an existing Django application.
2. Use the Django admin to create and edit pages using Django templates.
Thank you for your response,.
Well, I have define the template:
comments/comment_user_notification.txt
but any comment is displayed.
Regards
Ariel
On Thu, Jan 13, 2011 at 10:43 AM, Xavier Ordoquy wrote:
> Hi,
>
> You may want to have a look at:
>
> http://docs.djangoproject.com/en/1.2/ref/co
Is there an overview of django-cms for those not familiar with it? I
looked around the project homepage and, surprisingly, I couldn't find
anything that gives a high-level overview. For example:
* Is django-cms just a set of extensions to django that I could add
individually and end up with djan
1. Is there a way to look for particular errors within the form.errors
dictionary by somehow specifying either a message key or value? If so
what's the format?
2. Is it possible to specify the format of error messages displayed
say as a paragraph instead of a list item or with a specific color
lik
On Jan 14, 2011, at 12:19 PM, spenoir wrote:
> I pretty sure I've set up my sitemaps correctly but I get this error
> when I try to specify a custom template for the sitemap. anyone any
> ideas? I'm using Django 1.2
Because the function declaration doesn't accept template_name. You can replace
You get the template but you don't render it.
2011/1/14 Fletcher Haynes
> Hi everyone,
>
> I'm trying to work on a project in Django, but I'm encountering some odd
> behavior. I have this in base.html in my template directory:
>
>
>
>
> {% block title %}Schedule{% endblock
DjangoCon Europe 2011 just got announced:
http://www.djangoproject.com/weblog/2011/jan/14/djangocon-eu-2011-announced/
I was wondering if there are any updates on DjangoCon US 2011?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
I pretty sure I've set up my sitemaps correctly but I get this error
when I try to specify a custom template for the sitemap. anyone any
ideas? I'm using Django 1.2
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send emai
The django CMS core team just released the third release candidate for
version 2.1.
Download: http://pypi.python.org/pypi/django-cms/2.1.0.rc3
Documentation: http://django-cms.rtfd.org
Source: https://github.com/divio/django-cms/tree/2.1.0.rc3
Please report any issues you find with this release
Hi everyone,
I'm trying to work on a project in Django, but I'm encountering some odd
behavior. I have this in base.html in my template directory:
{% block title %}Schedule{% endblock %}
{% block logobar %}
Logo bar will go here
http://tinyurl.com/4utep4m
On Jan 14, 12:06 am, Brian Craft wrote:
> Are there docs somewhere for the Group methods? E.g., I discovered
> through extensive googling that I can call user.groups.all(), but I
> can't find docs of an "all()" method, or any other method for Groups.
> If there aren't d
> loaddata saves object created via deserialization, which pass raw=True to
> the model's save_base, see:
>
> http://code.djangoproject.com/browser/django/trunk/django/core/serial...
Thanks Karen. That's exactly the answer I was looking for.
--
You received this message because you are subscribe
Thanks for the help. I'll modify my code accordingly.
On Jan 14, 6:27 am, Daniel Roseman wrote:
> On Thursday, January 13, 2011 7:30:56 PM UTC, hank23 wrote:
>
> > I have a screen which displays just fine the first time in, however
> > when I knowingly submit the page without entering data in all
On 14 jan, 13:54, Chris Lee wrote:
> Hi Django gurus,
>
> I'm coding-up a failure tracking database, and came up with what I
> thought was a straightforward way to encode different searches into
> part-failures via a single URL pattern.
>
> In urls.py:
>
> url(r'^part_failure_list(/project/(?P\
Hi Django gurus,
I'm coding-up a failure tracking database, and came up with what I
thought was a straightforward way to encode different searches into
part-failures via a single URL pattern.
In urls.py:
url(r'^part_failure_list(/project/(?P\d+))?(/platform/(?
P\d+))?(/hw_category/(?P\d+))?(/
h
On Thursday, January 13, 2011 7:30:56 PM UTC, hank23 wrote:
>
> I have a screen which displays just fine the first time in, however
> when I knowingly submit the page without entering data in all of the
> fields to cause an error the page loses some of the data and controls.
> I'm sure my view
Following are the environment I am working on:
1. Django 1.2.3
2. Python 2.4
3. wsgi
4. Centos 5.4
>From apache, I can run makemessage command, and it works. It creates
the *.po files.
I use the following statement for this.
os.system("django-admin.py makemessages -l hi")
But I am unable to do co
Thank you all for your help.
I did this and it worked. Much easier to work with because there are
so many items.
class IngredientInline(admin.TabularInline):
model = IngredientInfo
raw_id_fields = ("ingredient_name",)
extra = 3
On Jan 14, 1:33 pm, Matias Aguirre wrote:
> Yes, it's
Yes, it's possible, define them in in your inline class.
Excerpts from mongoose's message of Fri Jan 14 08:53:18 -0200 2011:
> Ok so I've tried it but can't get it to work properly. I am using
> inlines. Is it possible to use raw_id_fields with inlines?
>
> On Jan 4, 9:25 am, mongoose wrote:
> >
I asked about this back in October but nobody replied. I think it's been long
enough for a bump. ;o)
I searched the list online and haven't seen any recent discussions about this,
so I figured I'd check in. Last I heard, Orbited was the way to go, but it
seems that both it and django-orbited ha
Ok so I've tried it but can't get it to work properly. I am using
inlines. Is it possible to use raw_id_fields with inlines?
On Jan 4, 9:25 am, mongoose wrote:
> Thanks so much I'm going to give this a try!
>
> On Jan 3, 1:54 pm, Greg Turner wrote:
>
> > Using a raw_id_field instead of a dropd
On 14 jan, 09:46, SvartalF wrote:
> Nope, I mean that the value of 'name 'argument will be the name of the
> tag in templates, so tags {% tag_one %} and {% tag_two %} will call
> the same function, and render result in different templates.
>
It's indeed a valid use case, and from a quick glance
Nope, I mean that the value of 'name 'argument will be the name of the
tag in templates, so tags {% tag_one %} and {% tag_two %} will call
the same function, and render result in different templates.
On 14 янв, 16:29, marco carminati wrote:
> seehttp://docs.djangoproject.com/en/dev/howto/custom-
Hi,
I don't know much of windows, but couldn't it be some kind of network
filtering, parental control or whatever that creates this behavior ?
@daniels: your issue is different. Django dev server only serves one request at
a time. It looks like your chrome does several request at the same time.
see
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
you should use the 'context' parameter.
from link
"Sometimes, your inclusion tags might require a large number of
arguments, making it a pain for template authors to pass in all the
arguments and remember their order. To solve t
35 matches
Mail list logo