Django Database problems
Hi all, I've been using Django for about a month now, with no real problem on my linode vps with ubuntu. For some reason now everytime I start a new project I cant sync the database. I get a "Need to fill in the database name' message even though it clearly filled in. Even if I can get past that bit and can sync everything, going to /admin I get the cant access database error. The paths are right, I have changed the database permission to be able to write to them I just dont know what the prob is. I really dont want to have to re-install my who system as I have a few web projects running from it all ready, so if anyone has come across this or has a fix, please let me know Thanks Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Database problems
I'm using Sqlite DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = '/var/www/django/robproject/rbdata.db' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. I did open a ticket with the django people, but they said it was some kind of compatibilty issue... I had installed Django 1.2, so I could avoid the compatibilty issues with CMS, but after installing django- tagging, running django-admin.py --version it claims it is v1.1. Dont know if this has anything to do with it. On Aug 25, 4:21 pm, Reinout van Rees wrote: > On 08/25/2010 05:03 PM, Robbington wrote: > > > > > I've been using Django for about a month now, with no real problem on > > my linode vps with ubuntu. For some reason now everytime I start a new > > project I cant sync the database. I get a "Need to fill in the > > database name' message even though it clearly filled in. Even if I can > > get past that bit and can sync everything, going to /admin I get the > > cant access database error. The paths are right, I have changed the > > database permission to be able to write to them I just dont know what > > the prob is. > > > I really dont want to have to re-install my who system as I have a few > > web projects running from it all ready, so if anyone has come across > > this or has a fix, please let me know > > Could you paste the database part of your config (with user/password > obfuscated, of course)? > > Reinout > > -- > Reinout van Rees - rein...@vanrees.org -http://reinout.vanrees.org > Collega's gezocht! > Django/python vacature in Utrecht:http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: mod_wsgi setup issue
I use a Cherokee, Uwsgi setup. It really takes the hassle out of it as the Cherokee admin interface just has a wizard that you point to the uwsgi.xml file. On Aug 28, 7:53 am, Graham Dumpleton wrote: > On Aug 28, 2:48 pm, Joel Klabo wrote: > > > All the files are shown here:http://gist.github.com/554724 > > > I don't know what I'm doing wrong but I'm still getting 500 > > Go look in the Apache error log for the reason for the error and post > that here. > > Better still, go watch the mod_wsgi presentation linked from the wiki > tab on the mod_wsgi site as it goes through the errors you would get > for a 500 error and tells you what to do. > > Most likely as pointed out by others, it is because sys.path is not > set correctly, but there can be other reasons as well. > > Graham -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Web hosting?
I use a Linode with Ubuntu serving django with a uwsgi/cherokee setup. Its remarkable how easy and intuitive it is and its hardly bank breaking at £10 a month. You cant beat the flexibility that you get. The only complaint I've got is the compatiblity issues with Django 1.1 and Cms. Its caused me countless re-installs. On Aug 31, 9:13 am, Sithembewena Lloyd Dube wrote: > Hi folks, > > I introduced Django at work not very long ago and the uptake has been good. > We are seeing early results working with the framework (somebody who never > previously used Python or Django has managed to build a web app well within > proposed time frames). > > We will be going live in a while, and we need hosting. I have a host in > mind, but I wanted to know what others think? In your view, which host > provides good Django support and decent performance? > > -- > Regards, > Sithembewena Lloyd Dubehttp://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Web hosting?
Also the Linode support team are amazing, I have been left nothing but impressed by them. On Aug 31, 10:25 am, Robbington wrote: > I use a Linode with Ubuntu serving django with a uwsgi/cherokee setup. > Its remarkable how easy and intuitive it is and its hardly bank > breaking at £10 a month. > You cant beat the flexibility that you get. > The only complaint I've got is the compatiblity issues with Django 1.1 > and Cms. Its caused me countless re-installs. > > On Aug 31, 9:13 am, Sithembewena Lloyd Dube wrote: > > > > > Hi folks, > > > I introduced Django at work not very long ago and the uptake has been good. > > We are seeing early results working with the framework (somebody who never > > previously used Python or Django has managed to build a web app well within > > proposed time frames). > > > We will be going live in a while, and we need hosting. I have a host in > > mind, but I wanted to know what others think? In your view, which host > > provides good Django support and decent performance? > > > -- > > Regards, > > Sithembewena Lloyd Dubehttp://www.lloyddube.com- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django + Postgres
Hi, I seem to be having a problem setting up django and postgresql. I have created a database and switched users to postgres then sync'd the database successfully in my django project directory. But it isn't finding the admin page still. No errors, just cant find them. Can any one help with Postgres or point me in the direction of a good tutorial? Thanks Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django + Postgres
Apologies I should have been more clear, 'It' refers to my domain name when visited "/admin" All the django settings are correct, I've used sqlite3 and got the admin up and working. So I have installed postgres, pyscopg2. su postgres created a database updated my settings.py: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'template1', 'USER': 'postgres', 'PASSWORD': 'postgres', Then I have su postgres postg...@myvps:/var/www/django/$ python manage.py syncdb That upates the database, with all the admin database stuff, but it doesnt find anything at the admin url On Aug 31, 12:42 pm, Xavier Ordoquy wrote: > Also, what kind of users are you speaking about ? system, database or django > users ? > Do you have the admin site available in the urls ? Did you uncomment both the > url and the auto discovering part ? > Did syncdb showed django_admin_log table being created (or can you check it > has been created) ? > > Regards, > Xavier. > > Le 31 août 2010 à 13:34, Albert Hopkins a écrit : > > > > > On Tue, 2010-08-31 at 04:30 -0700, Robbington wrote: > >> Hi, > > >> I seem to be having a problem setting up django and postgresql. > > >> I have created a database and switched users to postgres then sync'd > >> the database successfully in my django project directory. But it isn't > >> finding the admin page still. No errors, just cant find them. > > > What is "it" and what is meant by "it isn't finding the admin page"? > > > Did you enable the admin in INSTALLED_APPS and urls.py? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django v1.1
Hey, I keep getting this annoying problem that when I download and install a new django package, say django-registration it reverts django from version 1.2 to 1.1... Is there anyway to avoid this as it messes up my databases each time for each django project I am running. I've used a variety of methods for getting these packages, easy_install, aptitude install, pip install all of the seem to do it.. And does any one know the best way to upgrade django back to version 1.2, do I have to delete it and start again? Thanks Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django v1.1
Cool, thanks. I guess I will have to start using virtualenv, it came installed with my vps stack script, but I disabled it as I was having probs using postgres. I guess I never gave it a great deal of time. I just dont get why its now reverted to v1.1, its not even on my python path, print sys.path shows only djangov1.2.egg on there.. Frustrating. Rob On Sep 17, 1:04 pm, Piotr Zalewa wrote: > Hi Robbington. > > I'd suggest to use virtualenv and keep to use *only* pip > that way only you have the power to change anything > to update Django to a version above 1.2 simply > pip -E your_virtual_environment install Django>=1.2 > > zalun > > On 09/17/10 13:02, Robbington wrote: > > > > > > > Hey, > > > I keep getting this annoying problem that when I download and install > > a new django package, say django-registration it reverts django from > > version 1.2 to 1.1... Is there anyway to avoid this as it messes up my > > databases each time for each django project I am running. > > > I've used a variety of methods for getting these packages, > > easy_install, aptitude install, pip install all of the seem to do it.. > > > And does any one know the best way to upgrade django back to version > > 1.2, do I have to delete it and start again? > > > Thanks > > > Rob > > -- > blog http://piotr.zalewa.info > jobs http://webdev.zalewa.info > twit http://twitter.com/zalun > face http://facebook.com/zaloon- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: trouble creating first project
Phil, If it helps, /usr/local/bin is where linux looks for command line commands. If you have a quick look in there you will see things like ls, nano, and other program names that you can type into the command prompt. Hense the reason a link to djanog-admin.py has to exist in there for Ubuntu to know that it can be executed from the command prompt. I mention this because some one has said that it is to do with your Python path, and this isnt true, its to do with the way you installed django in the first place. Personally I dont use svn, as I always had problems with it, you might want to look into pythons setup-tools and use easy_install or pip. Both I have found to be excellent. Whilst getting to grips with django on ubuntu myself I encountered many python path problems as I am sure you will. You may want to read up on virtualenv (http://pypi.python.org/pypi/virtualenv) and creating your projects inside a virtual environment as it will help you in the long run. Hope thats helpful in someway :) Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: trouble creating first project
Ok Steve, No need to get huffy. We are trying to help out Phil and if you had read some of the previous posts you might notice I wasnt taking about you. Not that I wanted to name names Shawn Milochik "It seems that the command you're running is not on your PYTHONPATH. You may have to enter the full path to django-admin." You are absolutley right about ls not existing in /urs/local/bin but for the scope of the post it seems to be an adequate example as he was using it to create a symbolic link. I meant no disrepect your Linux sensabilitys but as the guy sounds like he obvioulsy new to this I thought I would keep it simple Unlike.. "It's to do with the shell search path (under most shells, the $PATH environment variable) which is a colon-separated list (Windows: a semicolon-separated) list of directories which the shell searches for programs to execute. " Very helpful Steve, pat yourself on the back. Kindest regards Rob ps, if you are planning to reply send me a direct email to continue this discussion as its better than filling this guys post with rubbish. On Oct 12, 5:43 pm, Steve Holden wrote: > On 10/12/2010 4:02 PM, Robbington wrote: > > > I mention this because some one has said that it is to do with your > > Python path, and this isnt true, its to do with the way you installed > > django in the first place. > > It's nothing to do with the Python path (which is held in sys.path, and > is essentially the list of directories that the interpreter searches for > importable modules). > > It's to do with the shell search path (under most shells, the $PATH > environment variable) which is a colon-separated list (Windows: a > semicolon-separated) list of directories which the shell searches for > programs to execute. > > I'd be very surprised, by the way, to find the ls program in > /usr/local/bin. It normally lives (as do most other system binaries) in > /bin. > > regards > Steve > -- > DjangoCon US 2010 September 7-9http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to launch home page from urls.py?
Hi Chris, I use urlpatterns = patterns('django.views.generic.simple', (r'^$', 'direct_to_template',{'template': 'index.html'}), ) Where template is the defined template directory in my settings.py Seems a better way to me, as then if you want to expand your site you can just incorperate django's templating language. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: file read/write location
Hi Jim, I would assume that Django writes and reads files to myproject because in its mind it is the top level directory for your project environment. To Django + python nothing else really exsists. If that makes sense? Also, if you dont mind me asking, why not just use the database for recording and retrieving data, thats whats its there for. Rob :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial Error - TemplateDoesNotExist at /polls/
Where is your template_dirs in settings.py pointed too? If you can post your urls.py. Looking at the tutorial again, (r'^polls/$', 'polls.views.index'), means that the url 'polls' will serve the index function in the views.py file inside your polls app. Your index.html should lie inside the top level of your templates directory and will serve what ever you set as your top level domain name, or http://192.168.1.131:/ of course you have to set that up in your urls.py I use urlpatterns = patterns('django.views.generic.simple', (r'^$', 'direct_to_template',{'template': 'index.html'}), and then you would have (r'polls/$ , ('polls.view.index') -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial Error - TemplateDoesNotExist at /polls/
You see, what I tried to explain in the last message, my friend was that index in 'polls.views.index') doesnt point the url polls/ to the index.html but to the function you are suppose to create in the views.py file in your app directory. Your view.py file (inside your poll app folder)should look like from django.http import HttpResponse def index(request): return HttpResponse("Hello world blah blah blah") I can see that its a bit confusing. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial Error - TemplateDoesNotExist at /polls/
Apologies, I wasnt sure which bit of the tutorial you where at. I think I see now the problem. Did you just stop reading after you entered the last bit of code in views.py? """Reload the page. Now you'll see an error: TemplateDoesNotExist at /polls/""" So index.html is in /home/me/Templates/polls/index.html ? Where template_DIR is "/home/me/Templates" -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Glad to finally see some one using Cherokee with django. Dont just use it in development, its actually less memory intensive than apache as well as having an awesome admin interface. Anyway enough plugging. To avoid problems and for simplicty I would advise using Cherokee Uwsgi config to serve up your python code. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Hi Max, I am not sure what you mean by ' Do not use the uwsgi wizard: it's currently broken'? Rob, Ps, should you wish to discuss this further, perhaps it is better you email me directly, as to avoid filling Karims post with unnecessary messages. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Hey Karim, The best way to save yourself time and effort is really to use the Django development server when testing out alterations. Max, Actually I mentioned Uwsgi, Perhaps if you are going to state potential bugs with software you could be so kind as to add the specifics in your posts and not just ambiguous statements such as "Do not use the uwsgi wizard: it's currently broken" we are not all as dedicated to the Cherokee mailing list as your good self. I had a quick look, here is a small excerpt: "If you manually set the uWSGI source you will have no problem but the wizard make wrong assumptions" Now I appreciate, as I am sure my fellow Django-ers are, that you brought this issue to light, but you could have saved some trouble as I mentioned before. I cant help but feel your tone to be slightly obnoxious, maybe that's just me, but these forums are to share experience and assist those who are new or have a problem. You would do well to acknowledge that. Regards Rob Ps, apologies to Karim for unnecessary posts. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Dear Paul and Max, As I mentioned before please email me directly should you wish to continue this discussion further, and or create a new post. I feel it unfair to discuss this in this particular forum as it is unrelated to the original subject matter. I meant no offense to Max, I can see how the word obnoxious can be construed as such and I apologise, I merely meant I felt his comments were unconstructive in context. Regards Robert Dean robbing...@hotmail.co.uk -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
"Anyway, my intent here was to help. It's ridiculous how everything has to be reduced to pedantic argumentation and sanctimonious advice about what to post where." I was trying to be courtesy towards Karim as this is his post. Consider, Max, whether this post would have been better had you not contributed at all. I don't see how anything you have posted has been of great use as he clearly stated he 'Might try using Uwsgi if he runs into more trouble' You didn't even ask him what version of cherokee he is using, nor have you posted any material to assist him if he wished to use uwsgi. All you have done is stamp your feet about an issue that is essentially mute. I do not wish to be rude, and I asked you to email me directly because I did not want to perpetuate this pathetic and pointless debate in a public forum any longer, but for all intensive purposes you really are a complete tool. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Karim, If you hve not already quit reading these posts(I wouldnt blame you if you had) I want to once again apologise. I only posted as I was glad to see someone else using Cherokee and wished to offer a small insight into another way of serving python code. The whole thing has become idiotic and I am in part to blame. I hope that you have taken a small amount of useful information from all this and continue to develop some great apps. Regards Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: cannot setup database
Silly question, but are you setting the path to your database file or to the Sqlite3 executable? Just seems an odd name to use as your database file, if using sqlite3 I would normally create a database named closely to my project name. my_project.db or something. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Repost Admin Site Without Graphics
Hi, By 'with out graphics' do you mean no css or Javascript? If so you want to make sure the value for these 3 varibles are correct as its not governed by the templates list. MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the copied folder of admin media or a symbolic link if you are using Linux. MEDIA_URL = 'media/' ADMIN_MEDIA_PREFIX = '/media/' Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Admin without template (no colors, no css, just simple html)
Personally I dont bother creating symlinks to my admin media, I just copy the media folder over to my project directory. Anyway: If you think that your settings.py is right: MEDIA_ROOT = '/var/www/django/project/media/' MEDIA_URL = 'media/' ADMIN_MEDIA_PREFIX = '/media/' or its a permissions problem (Not sure why it would be) you can check with ls -n and alter permissions with chmod. Here is a guide if your not sure (http://www.comptechdoc.org/os/linux/usersguide/ linux_ugfilesp.html) Or check out how to setup a fcgi django project from the main django site. http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs If you are a beginner, you might save yourself some trouble using mod_python to serve python instead of fastcgi, just my opinion. I use Cherokee anyways Hope that helped, Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Repost Admin Site Without Graphics
So is your media stored at "" a...@h2oamr:~/django/amr/media? "" and you MEDIA_ROOT = '/home/amr/django/media' ? Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Admin without template (no colors, no css, just simple html)
Well my friend, I have quickly looked into hosting a django project via blue host and this is what the django site has to say: Similar setup as Dreamhost. Django is listed as unsupported, but with some pain it does work, and has a good price.. http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts I use a vps, so I have never had to intergrate it with a 3rd party hosting system. ""But I have my django and my project in another patch, actually, out of www directory, but I have the fastcgi file right there, only that file."" Not sure what you mean by 'in another patch'? Dont worry about the location of fastcgi, it is responsible for letting apache serve you python code, if you can log into the admin site, then its working. If you think its responsible for not serving the static media, then I would suggest reading the full fastcgi documentation. I use a cherokee- uwsgi setup, so I cant really comment. "" So, Where is my project directory in my shared hosting "" The project directory is the one created when you run django-admin.py startproject. Where your settings.py file is located. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: 'django-admin.py' is not recognized as an internal or external command
Looks like django is not on your sytem path. Have you used python much in Windows and are familiar with Environmental variables? Look like this problem has been addresses on the django forums http://thedjangoforum.com/board/thread/4/django-admin-py-error-when-installing-dj/ and here is a link from the main python site explaining python path. http://docs.python.org/using/windows.html Other than that chances are you havnt installed django right, make sure that it is sitting in the right folder inside your python directory. Dont use django and windows much, Think its c:/python/lib/sitepackages... Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
Hi Tsolmon, Can you post your full urls.py file for me? Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: TemplateDoesNotExist
Hi Lindsay, I would be happy to sort out your problem for a small fee. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
Bit confused, You said "But i already installed djangodocs on my INSTALLED_APPS ( 'django.contrib.admindocs', " and in my urls.py (r'^admin/doc/', include('django.contrib.admindocs.urls')), " But in your urls.py admin docs is clearly commented out. #(r'^admin/doc/', include('django.contrib.admindocs.urls')), If you are recieveing this error when visting www.yoursite/admin/doc this is why. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
Ok, Thanks, I was just seeing if it was a more basic error. Unfortunately with out seeing more of your code/ error message it is hard to diagnose the problem. I have to go out now for a few hours, but if you post the full error message someone/or myself when I get back maybe able to help you. It could be a mirad of things, error in one of your views, a problem in your settings.py(Check you ROOT_URLCONF to make sure it is pointing to the right place)or a compatiabilty issue if you have recently upgraded django, unless I have missed something really obvious. I have found a few posts that resolve similar problems to get you started: http://www.pubbs.net/201002/django/15026-no-module-named-urls.html http://groups.google.com/group/django-users/browse_thread/thread/e54e9801e053ecd3 I hope this helps. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
its an ImportError which means that it couldn't find your main urls.py or possibly a sub urls that you are including. Out of interest, this isnt the usual mysite.polls app kind of problem, how did you encouter this error? If you could post the entire error message that you are seeing including the traceback and the url that you are trying to visit when you get it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: CMS for django
Depends what you want to do friend, The admin interface is pretty extensible on its own, flatpages etc. but if you are looking for some ready built options Django CMS is worth a look http://www.django-cms.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: -bash: django-admin.py: command not found
I dont think you are going to get a great deal of help if you just repeat your posts, http://groups.google.com/group/django-users/browse_thread/thread/bab395cd78eca494?hl=en# There was some sound advice from experienced users of Django and Linux. There are also already some great tutorials on installing Django, django admin commands and this problem, http://code.djangoproject.com/wiki/InstallationPitfalls http://docs.djangoproject.com/en/dev/ref/django-admin/?from=olddocs http://docs.djangoproject.com/en/dev/topics/install/?from=olddocs If you are still having trouble after the solution being comprehensivley explained go further by stating what you dont understand, or where you are struggling. As it was stated before, its not to do with your version of Python, but your installation of Django. a copy of Django-admin.py needs to be in the folder usr/bin for your linux system to know that it is a system command. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: -bash: django-admin.py: command not found
Thats ok, I can appriciate how frustrating it can be trying to learn of your own back from the beginning as a lot of the advice can seem to be in a foreign language. But if you dont understand you need to state that, as often if you double post people will just ignore you, noone gets paid to submit on these forums. Anyways, to your problem. Firstly, understand that python looks in the folder site-packages to find any additional packages like django. I'm guessing that your problem is that you have not installed Django properly, check to see if you have a folder in site-packages named Django. Secondly, Linux looks in the usr/bin folder for system commands. So When you type django-admin.py into the command prompt, linux looks in that folder and if it cant find djang-admin.py it returns that error you are seeing. At the command prompt: find / -name 'django' to make sure that there is a folder inside site-packages called django. How are you going about installing django? apt-get install, easy_install, pip install? As mentioned before creating a symbolic link isnt the best way to go about it, installing django properly is your best bet. You will save yourself a lot of trouble in the long run. But just getting it working is often half the learning battle, so if you feel you really need to, locate django-admin.py: find / -name 'django-admin.py' and make a symbolic link to your usr/bin folder. It should be located at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ site-packages/django/bin/django-admin.py So you would type: sudo ln -s /Library/Frameworks/Python.framework/ Versions/2.7/lib/python2.7/site-packages/django/bin/django-admin.py / usr/bin. I hope I havnt been to condesending, just trying to put it in easy terms. I will however STRESS again, dont just create a symbolic link, install Django properly. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: how to add poll app in Admin page
when i added the Admin class to Poll class as inner class, Guess you mean when you register your poll app with django admin? Check a few things of the list. You have added your poll app to 'installed apps' in your projects settings.py file and ran 'python manage.py syncdb' You have created a new file named admin,py in your poll app folder that looks like this? //admin.py// from polls.models import Poll from django.contrib import admin admin.site.register(Poll) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Where is everything on ubuntu 10.10
Hi Charlie, By "I can't run: django-admin.py startproject some_project" do you mean that you get an error message like bash: django-admin.py: command not found? If so this post might be helpful. http://groups.google.com/group/django-users/browse_thread/thread/52183f8deb34fea0?hl=en If its something else, can you explain in more detail the problem you are having. My guess is that you need to install it properly. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django-admin.py not functional on 64 bit Vista
Hi Micheal, Pretty sure it has nothing to do with your version of windows. appended MS-DOS PATH: with "C:\hp\bin\Python\Lib\site-packages \django \bin" which allows me to run django-admin.py If you have installed Python and django propely, there is no need to append anything. It should work straight out the box. I'm thinking you disabled Django-admin.py by setting the environmental varible for DJANGO_SETTINGS_MODULE. Try unsetting it to see if that works. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: -bash: django-admin.py: command not found
You are welcome Errit, Have fun Django-ing. :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Serve different page to IE7/8?
Maybe not a Django-ish awnser, but prob the easiet way to do it would be to write conditional comments into your html and have a seperate style sheet for IE. Good tutorial on it. http://css-tricks.com/how-to-create-an-ie-only-stylesheet/ Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: tutorial part 4: ImportError
Firstly friend, 1.3 alpha has been released as a testing package. It isnt the most stable version and not meant for production, I would revert back to 1.2 unless your plan is to help the django team with bug fixes. Also, you are reading the wrong tutorial for your version, that is why you are getting that error. http://docs.djangoproject.com/en/1.2/intro/tutorial04/ Here is the one you want, I can see why that would be a bit confusing to you. Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: tutorial part 4: ImportError
As mentioned before, If you are using Django 1.2 you dont need to import list_view or detail_view just 'from django.conf.urls.defaults import *' As the tutorial documentation for 1.2 http://docs.djangoproject.com/en/1.2/intro/tutorial04/ instructs: from django.conf.urls.defaults import * from polls.models import Poll info_dict = { 'queryset': Poll.objects.all(), } urlpatterns = patterns('', (r'^$', 'django.views.generic.list_detail.object_list', info_dict), (r'^(?P\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict), url(r'^(?P\d+)/results/$', 'django.views.generic.list_detail.object_detail', dict(info_dict, template_name='polls/results.html'), 'poll_results'), (r'^(?P\d+)/vote/$', 'polls.views.vote'), ) Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: creating an api using python
There are lots of tutorials on creating api's using Django. If you are new to Python and Django start with the main Polls app on the main Django site: http://docs.djangoproject.com/en/dev/intro/tutorial01/ Otherwise, the best I can suggest is to google it: http://tinyurl.com/2umrbh6 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Beginner question on admin interface
Hi Stephan, Sounds like a nice project, but unless you have a good deal of time and a great amount of expiernce in programming + a entire development team to back you up I would have to say that scripting your own content management system from scratch may be slighty beyond you. If of course that is what you meant. If however you meant you were looking for some existing applications for Django then you may want to look into these: Self-Registration. Look into Django-registration http://bitbucket.org/ubernostrum/django-registration/ Tagging: http://code.google.com/p/django-tagging/ Django-Cms: http://www.django-cms.org/ (although I have come across some compatibilty issues using Django-cms and django-tagging together, with regards to the Django version) Good luck Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to setup the django progject to apache2
Bit confused matey, Do you have a domain name to serve those pages to? If you are just trying to run it from localhost, 127.0.0.1: why not just use the Django development server? Rob -- 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to setup the django progject to apache2
Fair enough, But if you are in the stages of development then its best to use the development server due to the way apache caches data, as changes to your code may not always show straight away leaving you scratching your head as to what is causing any unforeseen errors. Anyways, if you are really looking to use Apache, it would seem to me like you are missing a document root in your virtual host settings. no expert I must confess as I gave up with apache and started using Cherokee a while ago. Might also be as you have nothing in your urls.py to match to index. ? -- 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Djangoweek.ly, a Django weekly newsletter
Thanks Jon, I've signed up and am eagerly awaiting the first issue. :) Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django using wrong python???
Why/how have you two versions of Python installed? Where is Django installed? Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Problem with getting Sqlite running
the terminal returns me: >>> import sqlite Update your version of sqlite to 3. Run sqlite independently from the python command line to create a databases. sqlite3 example.db Simples -- 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Questions - Django -- Bash problem
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 email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I want Develop django poll app tuturial
Wow thats rude, poll_votes = the amount of votes for option a/b/c/d etc. On Apr 1, 9:00 am, cha wrote: > Im waiting -- 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.