Re: help with django installation

2021-08-25 Thread Kasper Laudrup
On 25/08/2021 12.42, Amor Zamora wrote: > I put them in situation. I am installing an application, on my local PC, > that uses django. Application that I installed 1 month ago and it worked > perfectly. 2 days ago I tried to install it again because I changed the > PC. and when accessing the

help with django installation

2021-08-25 Thread Amor Zamora
I put them in situation. I am installing an application, on my local PC, that uses django. Application that I installed 1 month ago and it worked perfectly. 2 days ago I tried to install it again because I changed the PC. and when accessing the functionalities it returns this error.

Re: django installation

2017-12-14 Thread Egor Smolyakov
Seems like you use python 2. Django 2.0 doesn't support second version of Django, only third. On 15/12/2017, bishalrijal...@gmail.com wrote: > > > how can i fix this > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: django installation

2017-12-14 Thread Egor Smolyakov
UPD: Seems like you use python 2. Django 2.0 doesn't support second version of Python, only third. On 15/12/2017, Egor Smolyakov wrote: > Seems like you use python 2. Django 2.0 doesn't support second version > of Django, only third. > > > On 15/12/2017,

django installation

2017-12-14 Thread bishalrijal110
how can i fix this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: multiple django installation in one server

2016-09-08 Thread m1chael
virtual environments and virtual hosts through your web server On Wed, Sep 7, 2016 at 9:28 AM, miarisoa sandy wrote: > Hi guys, > > I hope you are doing fine. > I have googled it but no fruitful results. > I am a newbie in django and I wonder what is the number maximum

Re: multiple django installation in one server

2016-09-07 Thread Luis Zárate
Take a look http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ , You can do this steps for ever django project in the same server 2016-09-07 7:28 GMT-06:00 miarisoa sandy : > Hi guys, > > I hope you are doing fine. > I have

Re: multiple django installation in one server

2016-09-07 Thread Asad Jibran Ahmed
Hi, I have a similar setup for my projects. What I do is: 1. Create a new virtual environment for the project ( https://virtualenv.pypa.io/en/stable/). Virtual environments make sure that each project that you deploy can have it's own set of dependencies that do not conflict with the

multiple django installation in one server

2016-09-07 Thread miarisoa sandy
Hi guys, I hope you are doing fine. I have googled it but no fruitful results. I am a newbie in django and I wonder what is the number maximum django that I can install in one server?? I have a lot of projects that I would like to check with django ( one project -> one django) to avoid some

Re: cookiecutter-django installation

2016-08-02 Thread Constantine Covtushenko
Roach <gary719_li...@verizon.net> > wrote: > >> I am having trouble with a cookiecutter-django installation. I don't have >> a normal virtualenv setup because I use Eclipse IDE with PyDev plugin. This >> means that all of the project files are outside of the virtu

Re: cookiecutter-django installation

2016-08-02 Thread Gary Roach
t;> wrote: I am having trouble with a cookiecutter-django installation. I don't have a normal virtualenv setup because I use Eclipse IDE with PyDev plugin. This means that all of the project files are outside of the virtualenv wrapper and vrtualenv is never actually acti

Re: cookiecutter-django installation

2016-08-01 Thread Constantine Covtushenko
am having trouble with a cookiecutter-django installation. I don't have > a normal virtualenv setup because I use Eclipse IDE with PyDev plugin. This > means that all of the project files are outside of the virtualenv wrapper > and vrtualenv is never actually activated. My OS is Debian Linux

cookiecutter-django installation

2016-08-01 Thread Gary Roach
I am having trouble with a cookiecutter-django installation. I don't have a normal virtualenv setup because I use Eclipse IDE with PyDev plugin. This means that all of the project files are outside of the virtualenv wrapper and vrtualenv is never actually activated. My OS is Debian Linux

Re: Django installation guide on windows is not correct

2016-02-02 Thread Luis Zárate
did you have installed pip ? https://pip.pypa.io/en/stable/installing/ what version of pip do you have? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Django installation guide on windows is not correct

2016-01-29 Thread Руслан Ломагин
I'm using this guide to install django on windows with virtualenvwrapper. But commands in guide hang my command pormpt, e.g. pip install virtualenvwrapper-win, pip install django May be someone had same issues, or has any ideas, please

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-26 Thread Ivo Roupa
Ezequiel, I followed your sugestion and run cmd as administrator (which I didn't know it was possible) and everything went fine. I have already Django installed and working. I'm already using PyCharm Community 3.4. Thank you a lot. Ivo On Friday, 26 September 2014 04:29:15 UTC+1, Ezequiel

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Ezequiel Bertti
Try to run your CMD on administration rights, is like *sudo *on unix system... http://technet.microsoft.com/pt-br/library/cc947813(v=ws.10).aspx I think is better install the setup_tools, (easy_install and pip) to install django and another projects in your python. Try to use jetbrains IDE for

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Mike Dewhirst
On 26/09/2014 10:17 AM, Ivo Roupa wrote: Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install Django 1.7 but I'm getting the following error: "c:\Program Files (x86)\Python27\lib\site_packages\win32com\gwn_py\__init__.py: Permission

RE: Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread peterqi
django-users+unsubscr...@googlegroups.com Date: Thu, 25 Sep 2014 17:17:08 -0700 From: iro...@gmail.com To: django-users@googlegroups.com Subject: Django installation issue on Win 7 Pro 64 Bits Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install

Django installation issue on Win 7 Pro 64 Bits

2014-09-25 Thread Ivo Roupa
Hello, My OS is Win 7 Pro 64 Bits, I have Python 2.7 correctly installed and I'm trying to install Django 1.7 but I'm getting the following error: "c:\Program Files (x86)\Python27\lib\site_packages\win32com\gwn_py\__init__.py: Permission denied." I forgot to mention that I have

Re: django installation

2014-06-11 Thread Bill Freeman
Still, the OP's command should have worked. The most likely problem is that Django was installed to a different python than the one he gets when he types "python" at the shell. He does not say how he installed Django, so it is hard to advise. On Wed, Jun 11, 2014 at 6:23 AM, Daniel Roseman

Re: django installation

2014-06-11 Thread Daniel Roseman
On Wednesday, 11 June 2014 11:00:38 UTC+1, Srinivas Reddy T wrote: > > There is no need to install virtualenv to install Django. > While this is technically correct, it is not good advice to give to a newbie. Experienced developers should be encouraging best practice among newcomers, and to be

Re: django installation

2014-06-11 Thread Sreenivas Reddy T
There is no need to install virtualenv to install Django. On 11/06/2014 1:56 pm, "Pavithra M H" wrote: > hi, first of all you should create an virtual environment and then u have > to install django, the detailed procedure is given here " > >

Re: django installation

2014-06-11 Thread Pavithra M H
hi, first of all you should create an virtual environment and then u have to install django, the detailed procedure is given here " http://www.openbookproject.net/courses/webappdev/units/webappdev2/resources/django_virtualenv.html; On Wednesday, June 11, 2014 11:10:01 AM UTC+5:30, David Moya

Re: django installation

2014-06-11 Thread Mike Dewhirst
On 11/06/2014 3:40 PM, David Moya wrote: So i supposedly installed Django because on the terminal, after going through the whole process of installation, it says "Successfully installed Django". However, when i try to run the command: python -c "import django; print(django.get_version())"I

django installation

2014-06-11 Thread David Moya
So i supposedly installed Django because on the terminal, after going through the whole process of installation, it says "Successfully installed Django". However, when i try to run the command: python -c "import django; print(django.get_version())" I get: ImportError: No module named django.

Re: Django installation on Hostgator

2014-05-02 Thread Todong
Do you meet a problem of setting up CGI for python? I found this post which may be helpful to you: Python CGI setup for hostgator hosting On Thursday, January 3, 2013 8:32:10 AM UTC+8, Gjorge Karakabakov wrote: > > Hi, I've

Re: Help with Django installation on windows

2013-09-21 Thread Chris Kavanagh
Hi Poom. . .You need to make sure that Django AND Python are on your system path. I'll run you through how to do that. . .Right click on "My Computer", choose "Properties", on the "Properties Window" choose the "Advanced Tab", then choose "Environment Variable". In that window it'll be divided

Re: Help with Django installation on windows

2013-09-21 Thread Poom Buncha
> > I see, thank you for your quick reply I will try Virtualenv and pip > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Help with Django installation on windows

2013-09-21 Thread Avraham Serour
you should use pip to install python packages, after you have pip you can use "pip install django" eventually it is worth to take a look at virtualenv so you can have separate environments and packages for each project in any case you should use "python

Re: Help with Django installation on windows

2013-09-21 Thread Tom Lockhart
On 2013-09-21, at 1:27 PM, Poom Buncha wrote: > Hi all > > First off, I like to say that I am a beginner to everything related to > computing. So I have to appologize a head of time if what I am asking is > common sense. > I'm trying to install Django on my windows

Help with Django installation on windows

2013-09-21 Thread Poom Buncha
Hi all First off, I like to say that I am a beginner to everything related to computing. So I have to appologize a head of time if what I am asking is common sense. I'm trying to install Django on my windows computer So I install Python 2.7 (and went throught the tutorial) I downloaded the

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-03 Thread Sithembewena Lloyd Dube
om> wrote: > >> Hi everyone, > >> > >> I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) > and > >> it seems such a mission to install Django. Python 2.7.2. is already > >> installed. Following the official Django installat

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Nikolas Stevenson-Molnar
gmail.com> wrote: >> Hi everyone, >> >> I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and >> it seems such a mission to install Django. Python 2.7.2. is already >> installed. Following the official Django installation instructions, I get no

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Justin Michalicek
, 2013 10:41:35 AM UTC-4, Lloyd Dube wrote: > > Hi everyone, > > I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) > and it seems such a mission to install Django. Python 2.7.2. is already > installed. Following the official Django installation instructions, I

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Thomas Lockhart
On 8/2/13 7:41 AM, Sithembewena Lloyd Dube wrote: Hi everyone, I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and it seems such a mission to install Django. Python 2.7.2. is already installed. Following the official Django installation instructions, I get no further

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Josh Finnie
;wrote: > On Fri, Aug 2, 2013 at 8:41 AM, Sithembewena Lloyd Dube > <zebr...@gmail.com> wrote: > > Hi everyone, > > > > I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) > and > > it seems such a mission to install Django. Python 2.7.2. is already

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Larry Martell
On Fri, Aug 2, 2013 at 8:41 AM, Sithembewena Lloyd Dube <zebr...@gmail.com> wrote: > Hi everyone, > > I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and > it seems such a mission to install Django. Python 2.7.2. is already > installed. Followin

Re: Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread François Schiettecatte
n) and > it seems such a mission to install Django. Python 2.7.2. is already > installed. Following the official Django installation instructions, I get no > further than trying to get wget-> which I will ned to compile with a C > Compiler -> which I can get by downloading

Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Sithembewena Lloyd Dube
Hi everyone, I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and it seems such a mission to install Django. Python 2.7.2. is already installed. Following the official Django installation instructions, I get no further than trying to get wget-> which I will ned to comp

RE: Django installation on Hostgator

2013-01-04 Thread bb6xt
Hi Gjorge, I haven't used Hostgator but I believe just extracting the required packages into project root should work. Here what am proposing: myproj/ myproj/ django/ django_extensions/ South This way you simply upload your project to the server along with the dependencies.

Re: Django installation on Hostgator

2013-01-04 Thread Gjorge Karakabakov
Thank you all for your answers - I decided to switch the hosting service to Webfaction . They have lots of tutorials and great support. On Thursday, 3 January 2013 01:32:10 UTC+1, Gjorge Karakabakov wrote: > > Hi, I've created a Django project but

Re: Django installation on Hostgator

2013-01-03 Thread Avraham Serour
Hi, I'm also using hostgator to host a django project. first of all note that they have different plans with different features, what I'm going to write applies to their shared hosting plans. Looks like they are using some version of centos, which comes with python 2.6 I believe. Installing a

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
You can also try this: https://my.hostgator.com/cgi/help/530 and/or this: https://my.hostgator.sg/cgi/help/python-install though iric it was riddled with issues. Been a bit since I had to do it without the ability to install things intelligently. Personally I'd suggest trying to install

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
You would be correct. You cannot install anything else on HostGator (it's why I left them despite their fantastic customer support). You can see what they do have installed here: http://support.hostgator.com/articles/hosting-guide/hardware-software/python-modules Outside of those things

Django installation on Hostgator

2013-01-02 Thread Gjorge Karakabakov
Hi, I've created a Django project but can't really seem to install it correctly on Hostgator. I've followed this tutorial: https://docs.google.com/document/pub?id=1jhvixMmTRGYHRbHaYlTHTNrtpziGotQMc0iBO0sTbIo and created new project which worked. When I uploaded my own project I got server

Re: Scaling django installation

2012-06-04 Thread vivek
> I guess it was 16. Sounds good. > Separation of django and static content is part of the deployment/setup > change anyway. Yes that would definitely help. As mentioned before look at varnish. rgds vivek -- You received this message because you are subscribed to the Google Groups "Django

Re: Scaling django installation

2012-06-04 Thread Subhranath Chunder
On Mon, Jun 4, 2012 at 12:15 PM, vivek wrote: > > > > > > That's aggregated load time, and not a single page loading time. The test > > comprised of navigating to multiple pages to generate more real life > > scenario. > > > > How many pages? > I guess it was 16. > > > >

Re: Scaling django installation

2012-06-04 Thread vivek
> > That's aggregated load time, and not a single page loading time. The test > comprised of navigating to multiple pages to generate more real life > scenario. > How many pages? > > > 3. text/html , which is the output of django app, is taking 62.74 % > > time. > > This number might not be

Re: Scaling django installation

2012-06-03 Thread Subhranath Chunder
On Monday, June 4, 2012, vivek wrote: > Hi, > > > To load test I used loadimpact.com and the results of which can be > found on: > http://loadimpact.com/load-test/www.reviews42.com-18774e46e8f562a6eb4... > > The test configuration consisted of 600 VUs with 10 mins step duration. > > Got around .1

Re: Scaling django installation

2012-06-03 Thread vivek
Hi, > To load test I used loadimpact.com and the results of which can be found > on:http://loadimpact.com/load-test/www.reviews42.com-18774e46e8f562a6eb4... > The test configuration consisted of 600 VUs with 10 mins step duration. > Got around .1 millions requests and around 200+ requests/sec

Re: Scaling django installation

2012-06-02 Thread Subhranath Chunder
On Sat, Jun 2, 2012 at 7:14 AM, Tim Chase wrote: > On 06/01/12 09:17, Subhranath Chunder wrote: > > (Given the fact that the server is deployed in Amazon EC2 > > Singapore location, as m1.xlarge with all it's network, memory > > constrains in place) > > A couple of

Re: Scaling django installation

2012-06-01 Thread Tim Chase
On 06/01/12 09:17, Subhranath Chunder wrote: > (Given the fact that the server is deployed in Amazon EC2 > Singapore location, as m1.xlarge with all it's network, memory > constrains in place) A couple of the other aspects that occurred to me: Is there geographical separation between your

Re: Scaling django installation

2012-06-01 Thread Subhranath Chunder
On Fri, Jun 1, 2012 at 8:20 PM, Kurtis Mullins wrote: > To me, the biggest bottleneck in a "Django Application Installation" (not > application) is not going to be Django at all. It's going to be I/O -- > typically to the database and/or file system. Yup. > Another

Re: Scaling django installation

2012-06-01 Thread Kurtis Mullins
at the app level. > > Just to keep the thread a bit more focused on it's purpose, I would like > to remind ourselves that, the discussion is on "Scaling django > installation" and not "Scaling django application". > For e.g. (with random number representations) >

Re: Scaling django installation

2012-06-01 Thread Subhranath Chunder
aling django installation" and not "Scaling django application". For e.g. (with random number representations) - Setup 1: Single server setup: x1 Computation Units, x2 GB memory, n Geographical location, Max Serves 2000 requests/sec - Setup 2: 2 servers cluster setup (1 server serving

Re: Scaling django installation

2012-06-01 Thread Kurtis Mullins
Check out django-cache-machine. It uses memcache to cache your ORM qureies and updates (invalidates) that cache when they change. On Fri, Jun 1, 2012 at 10:35 AM, Tim Chase wrote: > On 06/01/12 09:17, Subhranath Chunder wrote: > > On Fri, Jun 1, 2012 at 6:57 PM,

Re: Scaling django installation

2012-06-01 Thread Tim Chase
On 06/01/12 09:17, Subhranath Chunder wrote: > On Fri, Jun 1, 2012 at 6:57 PM, Tim Chase > wrote: >> 2) I/O >> 2a) disk >> 2b) network >> 2c) memory >> > Don't think these might be creating much bottleneck in my scenario. But > still, nothing like getting to exact

Re: Scaling django installation

2012-06-01 Thread Subhranath Chunder
On Fri, Jun 1, 2012 at 6:57 PM, Tim Chase wrote: > On 06/01/12 03:56, Subhranath Chunder wrote: > > With that in mind, how should we measure response complexity? > > Any particular parameter, scale? Probably I can measure against > > that, and share the numbers to

Re: Scaling django installation

2012-06-01 Thread Javier Guerra Giraldez
On Fri, Jun 1, 2012 at 3:56 AM, Subhranath Chunder wrote: > how should we measure response complexity? a simple first approximation is the number of DB queries per page. the debug toolbar nicely gives that figure while developing. -- Javier -- You received this message

Re: Scaling django installation

2012-06-01 Thread Tim Chase
On 06/01/12 03:56, Subhranath Chunder wrote: > With that in mind, how should we measure response complexity? > Any particular parameter, scale? Probably I can measure against > that, and share the numbers to shed more light on how many > requests can be handled in with a particular hardware

Re: Scaling django installation

2012-06-01 Thread Subhranath Chunder
On Fri, Jun 1, 2012 at 1:39 AM, Doug Ballance wrote: > I don't think anyone will be able to give you a good evaluation > without knowing more about the requests. Django itself could probably > handle 10k requests per second returning a simple "hello world" > response, or

Re: Scaling django installation

2012-05-31 Thread Doug Ballance
I don't think anyone will be able to give you a good evaluation without knowing more about the requests. Django itself could probably handle 10k requests per second returning a simple "hello world" response, or less than 10 if you are returning very large/difficult to generate responses. It is

Re: Scaling django installation

2012-05-31 Thread Subhranath Chunder
Bump! On Wednesday, May 30, 2012, Subhranath Chunder wrote: > As the subject suggests, wanted to discuss, acquire and share some > knowledge on scaling django installation. > > Firstly, my current project is a product Reviews platform, and I wanted to > benchmark or load t

Scaling django installation

2012-05-30 Thread Subhranath Chunder
As the subject suggests, wanted to discuss, acquire and share some knowledge on scaling django installation. Firstly, my current project is a product Reviews platform, and I wanted to benchmark or load test the current deployment. Currently the deployment/installation stands on a single server

Re: Django installation error

2012-05-24 Thread Karen Tracey
On Thu, May 24, 2012 at 4:19 PM, jggal...@prodigy.net.mx < jggal...@prodigy.net.mx> wrote: > D:\python_27\Lib\site-packages\Django-1.4>python > Python 2.4.5 (#1, Jul 22 2011, 02:01:04) > Python 2.4 is too old for Django 1.4. You need to have Python 2.5, 2.6, or 2.7 installed, see:

Django installation error

2012-05-24 Thread jggal...@prodigy.net.mx
Hi, I hope somebody can help me, I'm triying to install django on Win XP. I downloaded it from django's official site. Of course I have already python installed and when I do "python setup.py install" python give me the following message: D:\python_27\Lib\site-packages\Django-1.4>python

Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
You hit the nail on the head. The command import django executed in the Python interpreter. Getting started seems like a giant uphill battle, but fortunately I am quite determined. It also helps to have helpful people like you supporting my learning. Thanks again! -Ed On Jul 6, 2:44 pm,

Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Andre Terra
Hello, Ed A few tips to get you going on the right track: 1) If *Python can't find Django*, it's because it's *not on your PYTHONPATH*. If you have multiple Python installs, it gets even more complex as *> manage.py* can yield different results from* > python manage.py*, depending on how your

Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
This is the error I get when trying to install Django: error: could not create 'C:\Program Files\Python\Lib\site-packages \django': Access is denied Python 2.7 is installed. I tried manually copy the django site-packages folder and while the folder copies ok, django will still not run in python

Re: New to Django-Installation problem

2011-04-13 Thread PremAnand Lakshmanan
Yes, that was the problem..It installed properly now.. On Wed, Apr 13, 2011 at 5:32 AM, werefr0g wrote: > Are you using python 3? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email

Re: New to Django-Installation problem

2011-04-13 Thread werefr0g
Are you using python 3? -- 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

Re: New to Django-Installation problem

2011-04-12 Thread Shawn Milochik
Try replacing this: C:\Django\Django-1.3>setup.py install with this: C:\Django\Django-1.3>python setup.py install Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

New to Django-Installation problem

2011-04-12 Thread prem
Hi, Im trying to install Django but get an error while installing..Its a window installation.. I have downloaded the Django files and when I tried to install I get the following error. C:\>cd django C:\Django>cd django-1.3 C:\Django\Django-1.3>setup.py install File

Re: Is there a better way to do Django+WSGI+Apache when using multiple virtual hosts that point to the same Django installation than what I'm currently doing?

2010-04-15 Thread mw
One of my problems, as Steven mentioned in the thread above this post, is that I have to be very specific with URLs in my current setup. For example, site2.domain.com uses the same Django install as site1.domain.com, but a different application. As a result, in the urlconf I have to have

Re: Is there a better way to do Django+WSGI+Apache when using multiple virtual hosts that point to the same Django installation than what I'm currently doing?

2010-04-15 Thread Austin Gabel
Your probably better off with three separate VirtualHosts in your case. They can point to the same django project but use different settings files with a different SITE_ID for each one. This would allow you to utilize the built in Sites framework. On Wed, Apr 14, 2010 at 7:08 PM, Steven Degutis

Re: Is there a better way to do Django+WSGI+Apache when using multiple virtual hosts that point to the same Django installation than what I'm currently doing?

2010-04-14 Thread Steven Degutis
If you don't mind me jumping in here, I have a followup question (related context: I'm a django newb, this is day 3 for me) -- if you use ServerAlias, how do you specifically set django to recognize the different subdomains when a website is accessed? The urlpatterns seem to only match everything

Re: Is there a better way to do Django+WSGI+Apache when using multiple virtual hosts that point to the same Django installation than what I'm currently doing?

2010-04-14 Thread Austin Gabel
I'm assuming you are running all three of these projects on the same machine. You can use the ServerAlias directive in your config. It would look something like this ServerName host1.domain.com ServerAlias host2.domain.com host3.domain.com DocumentRoot /var/www/whatever/ WSGIScriptAlias

Is there a better way to do Django+WSGI+Apache when using multiple virtual hosts that point to the same Django installation than what I'm currently doing?

2010-04-14 Thread mw
Hello, I have multiple virtual hosts pointing to the same Django project. So something like: host1.domain.com host2.domain.com host3.domain.com each point to the same Django project because although it was required that host1 host2 and host3 should get their own hostnames, none of web apps the

Re: Securing Django Installation - file permissions?

2010-01-06 Thread Daniel Hirsch
Thank you for the response Daniel. That was more-or-less what I *thought* but it was great to be able to pass the information on to him from a 3rd party. That said, is there anything I should be doing from a practical standpoint as far as setting file permissions in my project directories? Things

Re: Securing Django Installation - file permissions?

2010-01-05 Thread Daniel Roseman
On Jan 5, 11:12 pm, Daniel Hirsch wrote: > Hi everyone, > > We just launched our first django application into production and my > server admin is hounding me about its security. He claims that python > is vulnerable to scripting by the URL, which I quite honestly have no >

Securing Django Installation - file permissions?

2010-01-05 Thread Daniel Hirsch
Hi everyone, We just launched our first django application into production and my server admin is hounding me about its security. He claims that python is vulnerable to scripting by the URL, which I quite honestly have no clue about. So, my question to you is two-fold: 1 - What are the likely

Re: Multiple sites, multiple databases, one Django installation? Middleware?

2009-10-30 Thread Stodge
I didn't realise there was a "settings" option for syncdb - it works beautifully! I now have multi site with multiple databases and one application installation! Cool... On Oct 30, 11:29 am, Stodge wrote: > Oops - this might be what I need: > > SetEnv DJANGO_SETTINGS_MODULE

Re: Multiple sites, multiple databases, one Django installation? Middleware?

2009-10-30 Thread Stodge
Oops - this might be what I need: SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings So I created my new settings file that points to a different database and made a new Apache alias to the new virtual Django site that I want (so /django/fred instead of just /django). But how do I sync this

Re: Multiple sites, multiple databases, one Django installation? Middleware?

2009-10-30 Thread Stodge
Sorry, forgot to say that is with mod_python. On Oct 30, 10:48 am, Stodge wrote: > Just wondering whether I could write a middleware that parsed > request.path, say: > > /django/site1/index > > extracted and removed the site name as "site1" and switched the > settings on the

Multiple sites, multiple databases, one Django installation? Middleware?

2009-10-30 Thread Stodge
Just wondering whether I could write a middleware that parsed request.path, say: /django/site1/index extracted and removed the site name as "site1" and switched the settings on the fly to use settings_site1.py instead. settings_site1.py would use DB named "site1_db". Then it would process the

Django installation and the admin

2009-06-24 Thread Robert
I am going to deploy a django project on a shared host. The server is equipped with apache, mod_python and python. I don't have my own apache instance and I don't have access to python myself. Since Django is effectively a python module and as such will be integrated in python, I wonder what

Re: Django installation

2009-05-10 Thread Margie
At http://www.djangoproject.com/download/, Option 2 is actually the 1.1 Beta (which does not require subversion). I've been using that for some time and I find that the additions that have been made to the admin interface are really very nice. For example, you can edit fields in the admin

Re: Django installation

2009-05-10 Thread Wayne Koorts
Hi, > As I have read the instruction they need me to download django 1.0.2 > for option 1 and option 2 it required subversion of django. I would > like to ask the group that can I just take the option 1 and no need to > take the second option or not? if not please tell me what is option 2 > use

Django installation

2009-05-10 Thread veasna.phal
Dear Django group, I am the first developer to start with django and my first problem is to install it. As I have read the instruction they need me to download django 1.0.2 for option 1 and option 2 it required subversion of django. I would like to ask the group that can I just take the option

Re: Django installation

2009-03-26 Thread Karen Tracey
> So that I can run http://localhost/django/index.html > core folder containing the django installation. > You lost me here. You don't point your browser at the Django code. You design your site's url hierarchy, and that's completely independent of the code hierarchy (Django or your

Django installation

2009-03-26 Thread Phonethics
/django/index.html core folder containing the django installation. Thanks --~--~-~--~~~---~--~~ 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@google

Re: Django installation on Linux

2009-02-11 Thread rg
Ohh I see. I'll reinstall a newer one. Thanks! On Feb 11, 9:27 pm, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 10:26 PM, rg wrote: > > > 2.2.3. > > > On Feb 11, 12:21 pm, Alex Gaynor wrote: > > > On Wed, Feb 11, 2009 at

Re: Django installation on Linux

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 10:26 PM, rg wrote: > > 2.2.3. > > > On Feb 11, 12:21 pm, Alex Gaynor wrote: > > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > > > > So I'm trying to install Django on a Linux server (I don't have

Re: Django installation on Linux

2009-02-11 Thread rg
2.2.3. On Feb 11, 12:21 pm, Alex Gaynor wrote: > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > > So I'm trying to install Django on a Linux server (I don't have root > > access) and when I run > > $ python setup.py install > > > I get the

Re: Django installation on Linux

2009-02-11 Thread Alex Gaynor
On Wed, Feb 11, 2009 at 12:20 PM, rg wrote: > > So I'm trying to install Django on a Linux server (I don't have root > access) and when I run > $ python setup.py install > > I get the following error: > > File "setup.py", line 48, in ? >root_dir =

Django installation on Linux

2009-02-11 Thread rg
So I'm trying to install Django on a Linux server (I don't have root access) and when I run $ python setup.py install I get the following error: File "setup.py", line 48, in ? root_dir = os.path.dirname(__file__) NameError: name '__file__' is not defined How should I fix this? I thought

Re: Importing old projects into a fresh django installation

2009-01-13 Thread Patrick Taylor
Just tossing this out, but it might be worth checking to see what manage.py or django-admin.py reports as the version of Django installed: http://docs.djangoproject.com/en/dev/ref/django-admin/#determining-the-version At least then you'll be certain whether it's 0.96, 0.97svn or 1.0. On Jan

Re: Importing old projects into a fresh django installation

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 6:42 PM, Robocop wrote: > > Well i definitely have code written for .96 (i may be running .96 or > a .97 svn checkout). My problem here is i'm trying to replicate the > old environment (i.e. i have .96 installed currently), yet something > is

Re: Importing old projects into a fresh django installation

2009-01-12 Thread Robocop
Well i definitely have code written for .96 (i may be running .96 or a .97 svn checkout). My problem here is i'm trying to replicate the old environment (i.e. i have .96 installed currently), yet something is going haywire. So as of right now, there is no issue with porting to 1.0, however if

  1   2   >