Hope this helps: from
https://docs.djangoproject.com/en/dev/releases/1.3-beta-1/
The staticfiles app ships with the ability to automatically serve
static files during development (if the DEBUG setting is True) when
using the runserver management command. Based on feedback from the
community thi
my .bashrc startup shell. After that there is no error.
>
> Selcuk
>
>
> On Aug 23, 10:50 pm, Landy Chapman wrote:
>> I reinstalled postgresql after deleting config files. in
>> postgresql.conf I changed this line:
>> # listen = "localhost"
>> to
I reinstalled postgresql after deleting config files. in
postgresql.conf I changed this line:
# listen = "localhost"
to read:
listen = "*"
Also make sure this line is uncommented:
port = 5432
Then I restarted the server.
/etc/init.d/postgresql restart
One way to see if postgresql i
Ignore my long-winded rant/reply above.
the command should be
psql -d test2db
Cheers
--
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 ema
> there are lots of questions about this problem on net , but there is
> no point solution
There's no FixItNow(tm) text that works for all use cases. Sometimes
over-familiarity will cause maddening (though simple-to-fix)
problems. My basic point is, since nothing you did solved the
problem, h
under wrote:
>
>
>
> > You may try to test the connection using the command line interface 'psql'.
>
> > On Tue, Aug 23, 2011 at 10:39 PM, SSozuer wrote:
> > > Settings in postgresql.conf are ok. And also postgresql is running
> > > without
Also did the the server actually start? On debian,
/etc/init.d/postgresql start
> > > Try connecting on the local system. I would guess you can't. It looks
> > > like you have a problem with the socket directory. Permissions?
>
> remember to edit postgresql.conf -- make sure to change
> liste
> > On Tue, Aug 23, 2011 at 2:05 PM, SSozuer wrote:
> > > Is the server running locally and accepting
> > > connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.
> > > 5432"?
>
> > Try connecting on the local system. I would guess you can't. It looks
> > like you have a p
-debian (squeeze) with a few KDE "testing" packages
-jEdit with plugins: "Buffer List", "Editor Scheme", "Text
Autocomplete"
-Eterm, nano,git, qgit
-postgresql, sqlite, nginx, apache2
I'd love to hear from people using Windows XP/VISTA/7, and Mac OS X
--
You received this message because you a
On Aug 19, 2:05 pm, Lee wrote:
> Landy - thanks for that idea. Am I correct in understanding that
> setting a field to AutoField has no effect on save_model, and simply
> causes dbsync to add the sequence/nextval to the Postgres table?
I am not sure; On a droid phone so I can't look at the sour
Did you create the table using django?
Can you post the table definition in postgresql?
If you still have an empty database, you could try dropping the id
column and do a django dbsync
otherwise you may have to create a sequence and apply it to the id
field. Something along the lines of:
creat
Have a look:
- http://old.nabble.com/Should-postgresql-cascade-after-truncate-td31886534.html
- https://code.djangoproject.com/ticket/11665
http://groups.google.com/group/django-developers/browse_thread/thread/27fe52b8bd0ca105/49d5058a1594a428
--
You received this message because you are subs
The example here:
https://docs.djangoproject.com/en/1.3/howto/outputting-pdf/
does not use a file; it uses the a file-like object: HttpResponse.
That is how my code does it. When I get back I will check if my pdf
report also creates a file in /tmp
--
You received this message because you are
Jani Tiainen is right
> > You can't (and you shouldn't) use file urls in your original source but
> > should let the Django handle urls to them for you.
..or hard-code relative links in your templates.
I was thinking about the file:/// un your urls; not the best idea but
they are absolute and wi
>From what I can tell it's not your fault. have a look at:
http://code.google.com/p/slickgrid/issues/detail?id=19
fix might be here
http://drupal.org/node/1094054#comment-4825024
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
When you get a blank page Does the title change?
Is debug mode on/off?
Is there an error message?
You could add this:
My html IS being displayed
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
On Aug 15, 9:11 pm, Konstantin Sushenko wrote:
> what is the source code for the blank page?
>
beat me to the punch... can you paste
the url you're using when you get a blank page
urls.py
views.py
thanks
--
You received this message because you are subscribed to the Google Groups
You may be right. I am out of my element (pardon the pun). However,
assuming your "content" was this:
content = [ { 'roll_no':1, 'cell_no': 1, 'nationality':'nation1'},
{ 'roll_no':2, 'cell_no': 2, 'nationality':'nation2'},
{ 'roll_no':3, 'cell_no': 3, 'nationality':'nation3'},
the django templ
@Konstantin Sushenko nice catch!
>> as a result of this you will have a series of 'data[i] = ...'
>>assignments in your output. where 'i' would be undefined.
So could he use this: JS isn't my thing, and this is approaching
too_clever
> $(function() {
i = 0;
> var dat
On Aug 15, 11:45 pm, Adam Zedan wrote:
> Hi i am getting a problem with my for loop which i used in my template.Could
> you kindly let me know what is going wrong in here.
> The for loop is in a jquery function
I think this:
> {% for x in range(len(content)) %}
.. is not allowed
Hopefully this will help
>> http://weblog.greenpeace.org/it/2006/04/getting_started_with_django_on.html
> I'm trying to start the tutorial (on Windows by the way) and I can't
> get anywhere. When I enter "django-admin.py startproject mysite" into
> either the interpreter or the Python command lin
This forum may help you with the dictionary-within-dictionary...
>> http://www.daniweb.com/software-development/python/threads/248240
for help with your models, check out (at least)
>> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>> https://docs.djangoproject.com/en/1.3/intro/tutorial
> I am trying to construct a simplest example to see the djblets data grid in
> action
>
> def test(request):
> countries = [ {'name': 'Australia', 'population': 21, 'tz': 'UTC +10',
> 'visits': 1},
> {'name': 'Germany', 'population': 81, 'tz': 'UTC +1',
> 'visits': 2},
>
> The response is something like:
> 'Content-Type: text/html; charset=utf-8\n\n[{"pk": 1, "model":
> "MyApp.foo", "fields": {"choice_field": "db_name1"}}]'
This is interesting.. But I think the serializer is working properly.
the first element in the tuple is the value stored in the database,
and
Hi,
your template is missing a closing double-quote
this line
> "month{% endif %} >
should be
> "month"{% endif %} >
Also by reformatting a little I noticed you close a with a
{% for current, entry, month, n in months %}
{% if entry %}{% endif %}
http://foo.bar/"
> The builtin dev server is not meant to be {{USED IN production}},
Python_junkie is NOT in production.
> and setting up apache+mod_wsgi (DaemonProcess mode) is no big deal.
It can be for beginners; it can wait until app will be deployed
>> I am presuming that I can continue to use the django li
>The application runs when I remote into the server and run
> the web pages with localhost on the 8000 port.
> How do I connect to this web page for demonstration purposes when I am
> not remoting into the virtual server.
>
> I tried just replacing localhost with the IP address with port 8000
> an
copy/paste typo, sorry. It should have read/been:
def formView(request, which_form=None):
if request.method == 'POST':
if not [1, 2].__contains__(which_form):
pass # <--- iNone or nvalid form specified
else:
if which_form==1:
form =
I apologize since I tried to reply via gmail. Reposting & expanding
part of a solution .
> I've figured a way that I think will work best for me for the model
> and form but I'm having trouble with writing the view. Here is my
> pseudo code
>
> models.py
> -
> class baseM
I apologize since I tried to reply via gmail. Reposting & expanding
part of a solution .
> I've figured a way that I think will work best for me for the model
> and form but I'm having trouble with writing the view. Here is my
> pseudo code
>
> models.py
> -
> class baseM
I think you have a *namespace* problem.
> and finally my forms.py :
>
>from django import forms
>from django.contrib.auth.models import User
>
> > Error was: 'module' object
> > has no attribute 'User'
#--
You are importing everything in "django/forms/" into yo
> class CommentForms (forms.Form):
> cf_writer = forms.User()
>
> Error was: 'module' object
> has no attribute 'User'
>
> Do you have any idea ?
Normal forms don't include/automatically create 'User' as a field...
The built-in comment app may be what you need:
https://docs.djangoproject.com/
This is not strictly a django question. What are the bounds (lower limit)
for the library you are using eg is there really a row 0, col 0 in the
spreadsheet?
Give this a try
#--
http://pastebin.com/jz6gH9yz
--
You received this message becaus
> Also, would db sync work with this approach or would I have to
> manually add the table?
I'd recommend backing up your data (just in case you have a typo). db
sync *should* create the new tables for you. I prefer to manually
manipulate my database (I never used South.)
--
You received thi
Brian, have a look at:
https://docs.djangoproject.com/en/1.3/topics/db/models/#abstract-base-classes
> If I understand you correctly, your situation is:
>
> FORM 1 --> [table 1]
> FORM 2 --> [table 2]
>
> where FORM1 and FORM2 are *identical*,
> and TABLE1 and TABLE2 are *identical* (same
If I understand you correctly, your situation is:
FORM 1 --> [table 1]
FORM 2 --> [table 2]
where FORM1 and FORM2 are *identical*,
and TABLE1 and TABLE2 are *identical* (same structure)
*identical* meaning definition is the same but names are different for
obvious reasons...
If I understand
36 matches
Mail list logo