Hello! I have a problem with the Django. I was able to create django-
admin.py startproject project in my home directory, and was able to
see the files such as manage.py, init.py, settings.py, and so on.
After some steps, I approached a problem with manage.py syncdb. It
says that the database ENGIN
Hello, I have another question. When it comes to Django, I notice some
people type as django-admin startproject project and some have to type
as django-admin.py startproject project ( in my case, I had to do
that), is it base on the setup of the Django that cause the
differences between the admin.p
Thanks for the reply!
I probably didn't explain the problem properly. I have been using the
ModelAdmin.readonly_fields option, however it hasn't been doing quite
what I need for inline formsets. In the case of my inline form, when I
set some of the fields to readonly, they end up read only for all
Hello Kimberly,
The reason you are getting bash error, is the command you are looking
for is "django-admin.py startapp tolls" not "manage.py startapp
tolls".
Rob
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send emai
your whole engine line should read
'ENGINE': 'django.db.backends.sqlite3'
--
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 email to
django-u
On 23 January 2011 11:54, Kimberly wrote:
> Hello, I have another question. When it comes to Django, I notice some
> people type as django-admin startproject project and some have to type
> as django-admin.py startproject project ( in my case, I had to do
> that), is it base on the setup of the Dj
On Tue, Jan 18, 2011 at 8:42 AM, Victor Hooi wrote:
> Russ,
> Aha, excellent, thanks for clearing that up =).
> I can see you point - django-registration has a module called
> "registration", django-extensions has a module called "django_extensions",
> and django-staticfiles has one called "static
Hi all,
I am running django (1.2.4) project ("myproject") with an app called
"myapp". The tree looks this way:
myproject
|-- __init__.py
|-- myapp
| |-- __init__.py
| |-- models.py
| |-- templates
| | |-- base.html
| | |-- base_menu.html
| |-- tests.py
| |-- views.py
|-- manage.p
> 1) Accessing http://localhost/myproject displays the whole hierarchy of
> files in the "myproject" which is not what i want to display.
> so how do i make "index" function in myapp/views.py render base.html as
> before with cherokee ?
looks like you put your django project root as the
On Jan 23, 7:03 am, Ross Poulton wrote:
> Hello fellow Django users,
>
> A long time ago I started collecting deployment information from
> Django users submitting their websites towww.djangosites.org. I
> promised at the time to make the stats public, and although i've
> shared them with a few I'
Hi,
I'm getting the below exception from the third line in the snippet.
This works fine on one server while fails on the other. Any help?
Exception Type: TemplateSyntaxError
Exception Value:'if' statement improperly formatted
{% range 1:32
Hi all,
I'm a new comer to Django. As a first step, I use Django
Administration to manage my objects. But whenever I added or changed
an object(or a user, the same thing), then click the "Save" button,
the page just jumped to an error page, which said "the page cannot be
displayed". It seems that
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear All,
I've started playing around with Django in the last few days, and I'm
enjoying the speed
and the power of such framework. I'm writing a small application to
display and sort
ip addresses stored in a Postgresql database, right now I'm stuck
Hi,
I am stuck while look into source code of Django's lazy decorator. At
line 205 of functinal.py, there is:
def __unicode_cast(self):
return self.__func(*self.__args, **self.__kw)
def __str_cast(self):
return str(self.__func(*self.__args, **self.__kw))
Why doesn't __
1, Is it possible to use NoSQL(HBase or Cassandra) rather than SQL
server in Django?
2. Is there any web log analysis "middleware" for django?
If not why not make one?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
On Sun, Jan 23, 2011 at 6:42 PM, Ivo Brodien wrote:
>
> 1) Accessing http://localhost/myproject displays the whole hierarchy of
> files in the "myproject" which is not what i want to display.
> so how do i make "index" function in myapp/views.py render base.html
> as before with cherokee ?
On Sun, Jan 23, 2011 at 8:25 AM, vamsy krishna wrote:
> I'm getting the below exception from the third line in the snippet.
> This works fine on one server while fails on the other. Any help?
>
> Exception Type: TemplateSyntaxError
> Exception Value:'if' statement improperly format
Oh ok. Thanks for the direction. The server on which it fails uses
django 1.1. I was looking through the documentation for the same and
did not find anything related to relational operators in the django
templates. Any idea how can I do '<', '>' in 1.1?
On Jan 23, 6:39 pm, Karen Tracey wrote:
>
I've added the smart if feature to my custom template tags to get this
working.
On Jan 23, 7:05 pm, vamsy krishna wrote:
> Oh ok. Thanks for the direction. The server on which it fails uses
> django 1.1. I was looking through the documentation for the same and
> did not find anything related to r
Karen
Thanks for your reply. The reason I was trying to filter the id with
count was that I had read somewhere that you have to pass sum at least
two arguments (but may be I mis-understood what I was reading!)
I have changed my code to:
def get_fringe_value(self):
ft =
Fringe.o
On 23 jan, 17:27, Trevor Stanley wrote:
> Karen
>
> Thanks for your reply. The reason I was trying to filter the id with
> count was that I had read somewhere that you have to pass sum at least
> two arguments (but may be I mis-understood what I was reading!)
The Python builtin sum() function
I guess socket.inet_ntoa is enough for what you need.
On Sun, Jan 23, 2011 at 7:06 AM, Phillip Bailey wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
>
> Dear All,
>
> I've started playing around with Django in the last few days, and I'm
> enjoying the speed
> and the power of such f
I just started building a new app in 1.3 and I am having some static
files problems (I read the new documentation)
I am using pycharm as an IDE.
If I run a collectstatic it will actually dump all the admin static
files into my /static directory under my project but I can't get it so
serve any of
Thanks Bruno for the critique and you are right I don't know what I'm
doing and I am rather learning by accident. I am not a programmer and
don't profess to be one(yet). I have built the apps in the excellent
book, Practical Django Projects and I have also worked through, The
Definitive Guide
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I aledr,
thanks for your reply,
I've added the socket.inet_ntoa to my view.py
#view.py
from django.http import HttpResponse
import socket
from snort.models import Iphdr
def snort(request):
ip = Iphdr.objects.values("ip_src")
return so
Hello,
I am trying to get the company that I work at to use Django and Python
for future webdevelopment (whereas now that is done with PHP). We have
lots of different customers with lots of different website needs so
the datamodel is different so webframeworks are good choice (over CMS
maybe) and
Figured it out...
STATICFILES_DIRS = ( STATIC_ROOT,)
Had to add my static root directory to the static files dir...
Am I doing something kludgy or is the current documentation revision
in the SVN wrong?
-Wes
On Jan 23, 10:32 am, Wes Wagner wrote:
> I just started building a new app in 1.3 an
On Sun, Jan 23, 2011 at 20:40, Kevin Xiao wrote:
> Hi,
>
> I am stuck while look into source code of Django's lazy decorator. At
> line 205 of functinal.py, there is:
>
> def __unicode_cast(self):
> return self.__func(*self.__args, **self.__kw)
>
> def __str_cast(self):
> r
On 23 jan, 23:20, Trevor Stanley wrote:
> Thanks Bruno for the critique and you are right I don't know what I'm
> doing and I am rather learning by accident. I am not a programmer and
> don't profess to be one(yet). I have built the apps in the excellent
> book, Practical Django Projects and I h
it still doesn't work. I typed it like you've suggested and it keeps saying
that the database ENGINE has not been set.
On Sun, Jan 23, 2011 at 5:11 AM, Mark Penix wrote:
> your whole engine line should read
> 'ENGINE': 'django.db.backends.sqlite3'
>
> --
> You received this message because you a
On Sun, Jan 23, 2011 at 6:47 PM, Kimberly Harvey wrote:
> it still doesn't work. I typed it like you've suggested and it keeps saying
> that the database ENGINE has not been set.
>
>
If you are using ENGINE by itself, you need to be using Django 1.2 or higher
and ENGINE is a key in the dictionary
I've used the tutorials and it doesn't work. I've done exactly what the
tutorial says, and it keeps saying that the ENGINE has not been set in the
setting. I am also using Django 1.2 or higher version.
On Sun, Jan 23, 2011 at 6:29 PM, Karen Tracey wrote:
> On Sun, Jan 23, 2011 at 6:47 PM, Kimber
Problems ( this is very frustrating!).
In the settings.py file, I'm using the django 1.2 or higher, so it has
ENGINE : '", and whatsnot
I set the ENGINE to sqlite3, that didn't work. Then I added the path, and
that still doesn't work. It keeps saying that the ENGINE has not been set. I
have no clu
Rather than have us guess what is in your settings file, post that whole
section. For example:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.join(ENVIRON_ROOT, 'db'
On Sun, Jan 23, 2011 at 8:27 PM, Kimberly Harvey wrote:
> Problems ( this is very frustrating!).
>
> In the settings.py file, I'm using the django 1.2 or higher, so it has
> ENGINE : '", and whatsnot
> I set the ENGINE to sqlite3, that didn't work. Then I added the path, and
> that still doesn't w
Sorry about that... here is what I have in the settings.py ( similiar to
what you showed, but mine is abit different in the NAME section):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
Karen, I've already posted the result to the board. I am new to this Django
world so I do not have full confident with how all of this work. Just
started learning, so this is very new to me.
By the way, sorry that I did not post the result earlier along with my
frustration, I wasn't thinking, so I
By the way, it is Django 1.2.4 to be exact
On Sun, Jan 23, 2011 at 7:38 PM, Karen Tracey wrote:
> On Sun, Jan 23, 2011 at 8:27 PM, Kimberly Harvey wrote:
>
>> Problems ( this is very frustrating!).
>>
>> In the settings.py file, I'm using the django 1.2 or higher, so it has
>> ENGINE : '", and w
On Monday, January 24, 2011 12:42:57 PM UTC+11, Kimberly wrote:
>
> Sorry about that... here is what I have in the settings.py ( similiar to
> what you showed, but mine is abit different in the NAME section):
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
Still doesn't work. But thank you for trying to help me. It keep giving me
the same ENGINE configuration that it is not set.
On Sun, Jan 23, 2011 at 8:05 PM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
> On Monday, January 24, 2011 12:42:57 PM UTC+11, Kimberly wrote:
>>
>> Sorry abo
Provide the full error including any Python traceback so we can see where
the error is occurring. If running manage.py runserver, easiest thing to do
is to provide the whole output from running the command.
Graham
On Monday, January 24, 2011 1:11:47 PM UTC+11, Kimberly wrote:
>
> Still doesn't
>From the Django docs[1]:
"values() takes optional positional arguments, *fields, which specify
field names to which the SELECT should be limited. If you specify the
fields, each dictionary will contain only the field keys/values for
the fields you specify. If you don't specify the fields, each
di
username@debian:~/wikicamps$ python manage.py runserver
Validating models
0 errors found
Django version 1.2.4, using settings 'wikicamp.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
It runs fine, but yet I faced problem with the database ENG
On Monday, January 24, 2011 1:36:10 PM UTC+11, Kimberly wrote:
>
> username@debian:~/wikicamps$ python manage.py runserver
> Validating models
> 0 errors found
>
> Django version 1.2.4, using settings 'wikicamp.settings'
> Development server is running at http://127.0.0.1:8000/
> Quit the ser
I remember that the one time I tried sqlite it complained until I put a .db
suffix on the name of my database. If you do not specify the full path and just
specify a name, then it will just create the database file in your project's
root directory.
So, under name just put:
'NAME' : 'database.
The error that I am seeing is in the shell/ the terminal. I am unable to
paste the exception problems on here. But I've typed it... look below
After I've ran the python manage.py runserver, there was NO errors. But when
I try to use, python manage.py syncdb, it showed errors/exceptions:
Traceback
That doesn't work for me ( very very strange), that why I am very confused
on what is going on with the database itself.
On Sun, Jan 23, 2011 at 8:55 PM, Steven Elliott Jr wrote:
> I remember that the one time I tried sqlite it complained until I put a .db
> suffix on the name of my database. If
Copy and Paste the following to replace your entire DATABASES tuple:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'database.db',
'USER': '',
'PASSWORD': '',
Also, what editor are you using? if its not an IDE-type thing remember to save
your work in the editor. If you are coming from the Windows programming world
generally your programs will save when you build and run something in the IDE.
If you're using just an editor like Emacs, Vim, Gedit, Kate,
It is not working at all, still facing the same configuration problem
(ENGINE IS NOT SET).
On Sun, Jan 23, 2011 at 9:19 PM, Steven Elliott wrote:
> Copy and Paste the following to replace your entire DATABASES tuple:
>
> DATABASES = {
>'default': {
>'ENGINE': 'django.db.backends.sqli
On Monday, January 24, 2011 2:19:09 PM UTC+11, Steven Elliott Jr wrote:
>
> Copy and Paste the following to replace your entire DATABASES tuple:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': 'database.db',
>
I am using pico editior and I've been saving the work by using the control
X.
On Sun, Jan 23, 2011 at 9:25 PM, Steven Elliott wrote:
> Also, what editor are you using? if its not an IDE-type thing remember to
> save your work in the editor. If you are coming from the Windows programming
> world
> That was already pointed out to them.
You're right, sorry my bad -- I just got to my computer and read the thread
rather than just using my phone.
> The lack of a comma should have resulted in a syntax error, which makes me
> believe, unless they modified the content before posting, that they
it says that the _file_ is not defined.
On Sun, Jan 23, 2011 at 9:28 PM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
> On Monday, January 24, 2011 2:19:09 PM UTC+11, Steven Elliott Jr wrote:
>>
>> Copy and Paste the following to replace your entire DATABASES tuple:
>>
>> DATABASES =
That is two underscores, followed by 'file' followed by two underscores. Not
just a single underscore.
Please try and cut and paste out we give to use and vice versa. In other
words, provide complete output showing full errors and tracebacks. Such
information may be meaningful to use even if yo
I've provided the full errors in the post, it is there. ( same errors as
I've faced prior to adding the print __file__ and 'DATABASES', DATABASES) as
I'm encountering the same after I've copied and paste the print inside the
settings.py file at the end)
On Sun, Jan 23, 2011 at 9:40 PM, Graham Dump
Are you saying that those two print statements you were told to add are not
causing anything additional to be displayed on the screen when you run both
runserver and syncdb?
This is why I asked you to provide the output again. You may not understand
what we are looking for. Don't care about wha
Just curious if you've done a python tutorial yet? It's hard to really
understand Django well unless you have at least some working knowledge of
python. You will most definitely struggle later on when things become more
complicated with your app. The framework is great for repetitive tasks but
On Monday, January 24, 2011 2:55:16 PM UTC+11, Graham Dumpleton wrote:
>
> Are you saying that those two print statements you were told to add are not
> causing anything additional to be displayed on the screen when you run both
> runserver and syncdb?
>
> This is why I asked you to provide the
Thank you for the advices. I've done some Python codes in the past and
recently. I already have a Python code that I will need to use to create a
Django website ( response to Steven).
(Response to Graham):
Traceback ( most recent call last):
File "manage.py", line 11, in
execute_mana
Traceback ( most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/usr/lib/python2.5/site-
packages/django/core/management/_init_.py", line 438, in execute manager
File
"/usr/lib/python2.5/site-packages/django/core/management/_init_.py", line
37
The output was produced with the print __file__ and print 'DATABASES',
DATABASES at the end of the settings.py file.
On Sun, Jan 23, 2011 at 10:18 PM, Kimberly Harvey wrote:
> Traceback ( most recent call last):
> File "manage.py", line 11, in
> execute_manager(settings)
> File
Thank you for spreading the word. Would like to get a response by
2/7/2011. I am also working on getting some python representation from
a local LA group (socal piggies). Doubling up a python booth with
django booth would be ideal. Thanks again Russ.
-Gerald
On 1/21/11 8:36 PM, Russell K
On Monday, January 24, 2011 3:18:45 PM UTC+11, Kimberly wrote:
>
> Traceback ( most recent call last):
> File "manage.py", line 11, in
> execute_manager(settings)
> File "/usr/lib/python2.5/site-
> packages/django/core/management/_init_.py", line 438, in execute manager
> Fi
Please do the following and provide the output:
pwd
MY OUTPUT: /home/username/wikicamp
Now run 'python' from the command line and do the following, providing the
output to us:
import settings
print settings.__file__
import wikicamp.settings
print wikicamp.settings.__file__
after imp
I did not modified the manage.py file
On Sun, Jan 23, 2011 at 10:44 PM, Kimberly Harvey wrote:
> Please do the following and provide the output:
>
> pwd
>
> MY OUTPUT: /home/username/wikicamp
>
> Now run 'python' from the command line and do the following, providing the
> output to us:
>
>
Override the templates.
On 23 Jan 2011 07:12, "rahul jain" wrote:
Hi Guys,
how to remove add and change links + icons on admin dashboard ?
Thanks.
Rahul
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Monday, January 24, 2011 3:44:59 PM UTC+11, Kimberly wrote:
>
> Please do the following and provide the output:
>
> pwd
>
> MY OUTPUT: /home/username/wikicamp
>
> Now run 'python' from the command line and do the following, providing the
> output to us:
>
> import settings
> print setti
Sorry about that, there is nothing showing for either echo $PYTHONPATH and
echo $DJANGO_SETTINGS_MODULE
I am currently reading your messages.
On Sun, Jan 23, 2011 at 10:55 PM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
> On Monday, January 24, 2011 3:44:59 PM UTC+11, Kimberly wro
/home/username/wikicamp/wikicamp/settings.py --> THIS DOES NOT EXIST
WHAT DOES EXIST: /home/username/wikicamp and inside that directory,
settings.py is there.
On Sun, Jan 23, 2011 at 11:02 PM, Kimberly Harvey wrote:
> Sorry about that, there is nothing showing for either echo $PYTHONPATH
>
On Monday, January 24, 2011 4:10:15 PM UTC+11, Kimberly wrote:
>
>
> /home/username/wikicamp/wikicamp/settings.py --> THIS DOES NOT EXIST
>
> WHAT DOES EXIST: /home/username/wikicamp and inside that directory,
> settings.py is there.
>
Earlier you said you got:
import settings
print set
The directory I did it from was from my home directory. I've moved the files
like you've indicated by using mv settings.py settings.py.broken.
Should I go ahead and type in the command as python manage.py syncdb to see
if it works?
On Sun, Jan 23, 2011 at 11:17 PM, Graham Dumpleton <
graham.dumpl
I ran the syncdb and it says it doesn't recognize the wiki module. Also,
when I moved the original file which was settings.py to settings.py.broken,
that means I have to change the formats in the manage,py and other files so
that it recognizes the settings.py.broken file, right?
On Sun, Jan 23, 20
On Monday, January 24, 2011 4:25:52 PM UTC+11, Kimberly wrote:
>
> The directory I did it from was from my home directory. I've moved the
> files like you've indicated by using mv settings.py settings.py.broken.
>
> Should I go ahead and type in the command as python manage.py syncdb to see
> i
Screen:
You just installed Django's auth system, which means you don't have any
superusers defined.
So it is working
I do have a question... after I've used the move technique to move the
settings.py settings.py.broken which places all of the file of settings.py
inside the settings.py.broken
On Monday, January 24, 2011 4:39:47 PM UTC+11, Kimberly wrote:
>
> Screen:
>
> You just installed Django's auth system, which means you don't have any
> superusers defined.
>
> So it is working
>
> I do have a question... after I've used the move technique to move the
> settings.py settings
LOL, I do have another thing I want to ask. I ran the server ( 0 errors) but
when to the browser to check, http://127.0.0.1:8000/ and now it says it
refused the connection. It said that the server may be busy or may have
network connection problem. It also said I may have an old version of the
pag
On Monday, January 24, 2011 5:05:05 PM UTC+11, Kimberly wrote:
>
> LOL, I do have another thing I want to ask. I ran the server ( 0 errors)
> but when to the browser to check, http://127.0.0.1:8000/ and now it says
> it refused the connection. It said that the server may be busy or may have
>
Thanks for the advice. Thanks for your help!
On Mon, Jan 24, 2011 at 12:10 AM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
> our help
> On Monday, January 24, 2011 5:05:05 PM UTC+11, Kimberly wrote:
>>
>> LOL, I do have another thing I want to ask. I ran the server ( 0 errors)
>> but
I ran the server by typing in the command: python manage.py runserver
and there's ( 0 errors) but when I check the browser by placing the
given url address: http://127.0.0.1:8000/, it says it refused the
connection. It said that the server may be busy or may have network
connection problem. It als
If you've been messing around quite a bit trying to fix other issues, the port
may be held up by a zombie process or something.
Try rebooting. If that doesn't work, see if the command line where runserver is
running displays any message.
Shawn
--
You received this message because you are su
James
I know that asking "when" for delivery of an open source project is
not usually a question that can be answered accurately, but would it
be possible for you to give at least a broad estimation of which of
the following is closest to a time-frame for the next release that
includes an updated-
In the docs:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
Also helpful:
http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html
On Jan 24, 6:53 am, Subhranath Chunder wrote:
> Override the templates.
>
> On 23 Jan 2011 07:12, "rahul
Hi
i want to do web service in using django My client is sending SOAP
request and should send response as SOAP response i am now sucessful in this
process using ZSI but i want to run the process in django server So i
refered http://djangosnippets.org/snippets/979/ now it would be helpfull fo
84 matches
Mail list logo