Re: Running django admin separately

2020-02-29 Thread Agumba .
My main aim is to run separate instances of the django.admin and drf API On Sun, Mar 1, 2020, 04:23 Stephen J. Butler wrote: > I think so. Haven't tested, one way should be be to have have two > url.py's, one that includes only the admin URLs and one that includes only > your project URLs. Then

Re: Running django admin separately

2020-02-29 Thread Stephen J. Butler
I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this: # main site settings from .settings import * ROOT_URLCONF = 'myproject.urls_main' #

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Yoo
https://www.sysadmin.md/deploy-django-in-production-using-apache-nginx-and-mod-wsgi.html https://stackoverflow.com/questions/18048318/apache-mod-wsgi-vs-nginx-gunicorn There are several fantastic tutorials online regarding apache2 and mod_wsgi. A simple google search with the keywords apache2 and

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Ing.Daniel Bojorge
I hope be useful for you https://debsconsultores.blogspot.com/2018/12/deploy-django-21-en-ubuntu-server-1804.html I have class in video in the course in Udemy, all in spanish Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Re: Running django tests with postgres

2018-09-18 Thread Mike Dewhirst
Bill I'm about to disappear for a few days. Thank you very much for your suggestions - I'll tackle them when I get back. Cheers Mike On 18/09/2018 11:34 PM, Bill-Torcaso-Oxfam wrote: I two comments, and as always Your Milage May Vary. * I wonder if you have the right indexes on your Pos

Re: Running django tests with postgres

2018-09-18 Thread Bill-Torcaso-Oxfam
I two comments, and as always Your Milage May Vary. - I wonder if you have the right indexes on your Postgres database? The previous people report much faster completion times for test that use Postgres as the database. Perhaps your domain is just hard (and you description makes

Re: Running django tests with postgres

2018-09-15 Thread Mike Dewhirst
My software classifies chemical hazards according to intrinsic physical properties. This requires accessing large quantities of reference data imported from jurisdictions around the world. The tests demand correct classification for known properties. There are dozens of different classificatio

Re: Running django tests with postgres

2018-09-15 Thread Jason
Agreed. Something is definitely off. At work, the legacy monolith django app has about 7800 tests. It takes about 18 minutes to run the full test suite in docker with the latest MBP (four cores, 5GB RAM allocated in docker machine), including creating the db and four parallel test streams ru

Re: Running django tests with postgres

2018-09-15 Thread Andréas Kühne
I would just be scared that some minor issues are different between the database implementations - therefore some test that would work in the tests and during development, doesn't work in production. I usually try to use the same things in production and development (or as close as possible). Tha

Re: Running django tests with postgres

2018-09-14 Thread Mike Dewhirst
+1 Andréas One of my projects runs (currently) 1,248 tests using SQLite3 in 72 minutes on my local Windows 10 dev laptop. That laptop has both a SSD and a hard disk. Foolishly I opted to use the SSD for software installations and the hard disk for development and thus the tests. I was concern

Re: Running django tests with postgres

2018-09-14 Thread Andréas Kühne
Hi, Just my 5 cents. I think you are doing the tests wrong. I don't believe that doing testing against hard coded values is at all correct - and it isn't actually that hard to change the tests to a simpler way. The values of the PK's aren't really necessary for your test to be true either - how do

Re: Running django on demand via my PyQt4 Standalone app

2016-10-27 Thread Leslie Jeffries
I have a Django project that is used to view complex data for use by Systems Engineers who are analyzing requirements traceability. Django works great for the viewing of data in lots of differing views. The templating system is awesome for that. However the data that is being viewed is coming f

Re: Running django on demand via my PyQt4 Standalone app

2016-10-26 Thread Dam ian
yeah you are right with the WoW effect :) and i know this framework but its to complex for me :P i prefere to use PyQt4, for example you have something like QT Designer where you can graphically deploy and customize the whole UI and then convert to pure python, what make me my work easier. If ki

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I used to do home automation, so I know you need an interface with very high "WOW!" factor AND PORTABILITY. That is why I proposed you check kivy ( http://kivy.org). kivy is the kick-ass interface I'd use, bar none. this of course my opinion and recomendation, but you know YAHOO. Dtb/Gby ==

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Dam ian
Hi again, and thanks for the answer and Tips @Mario R. Osorio >I cannot understand is why would you need django for admin, but use some other standalone (desktop?) application for everything else. You should try and stay either on the django or on the standalone application. i think i must

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I cannot understand is why would you need django for admin, but use some other standalone (desktop?) application for everything else. You should try and stay either on the django or on the standalone application. If after further analysis you still think you need both, then I'd use django, alo

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Vinicius Assef
Absolutely! :-D Thank you. On 24 October 2016 at 21:01, Avraham Serour wrote: > does this help? > > https://docs.djangoproject.com/en/1.10/topics/settings/#calling-django-setup-is-required-for-standalone-django-usage > > > On Tue, Oct 25, 2016 at 12:13 AM, Vinicius Assef > wrote: >> >> On 24 Oc

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Avraham Serour
does this help? https://docs.djangoproject.com/en/1.10/topics/settings/#calling-django-setup-is-required-for-standalone-django-usage On Tue, Oct 25, 2016 at 12:13 AM, Vinicius Assef wrote: > On 24 October 2016 at 16:30, Avraham Serour wrote: > > > > Django is a webframework, but it is not an

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Gergely Polonkai
Hello, I think installing Django purely for its ORM is a huge overkill. Why not, for example, SQLAlchemy? Or Qt's own DB layer (I'm making an educated guess here; if GTK has one, maybe Qt has its own, too.) If you actually want to use the web framework functionality, though, that's another story,

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Vinicius Assef
On 24 October 2016 at 16:30, Avraham Serour wrote: > > Django is a webframework, but it is not an all or nothing thing, you don't > need to use everything, you may just use the ORM, define your models, import > them from your application. This is an interesting scenario, Avraham. I can't imagine

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Avraham Serour
> Q1: Is it good idea to start a new QThread who runs the script os.system("web/manage.py runserver")? No, don't do that. > Q3: If no - what is the best method to start a django server on demand via my PyQt4 App and to stop it? If the idea is to use django from within a desktop app, you don't need

Re: Running Django Project Locally

2016-08-24 Thread Michael Macdonald
Good points. I tend to merge the roles of developer and QA in my mind when thinking of Django, since it is not my day-job and I'm working alone. That said, you are correct, when doing something more than quick-hit problem resolution, I'm guessing I'd wind up going back to runserver. I do stil

Re: Running Django Project Locally

2016-08-24 Thread Asad Jibran Ahmed
One thing I'd add to this is that I could never work without runserver because I tend to use ipdb a *lot* while debugging any problems. For me the best way to debug is to put import ipdb; ipdb.set_trace() in my code and just start debugging from the command line. Having uwsgi or any other kind of s

Re: Running Django Project Locally

2016-08-24 Thread Andreas Kuhne
2016-08-24 17:54 GMT+02:00 Michael Macdonald : > Interestingly enough, just this morning, after a couple times being bitten > with differences in behavior between use of runserver in development vs. > wsgi in production, I've decided to do all development on my local machine > under lighttpd. In

Re: Running Django Project Locally

2016-08-24 Thread Michael Macdonald
Interestingly enough, just this morning, after a couple times being bitten with differences in behavior between use of runserver in development vs. wsgi in production, I've decided to do all development on my local machine under lighttpd. In the process of (mis?)configuring it now. I'm prett

Re: Running Django Project Locally

2016-08-24 Thread Hendro Wibowo
Maybe you can fix it by creating a new Django project in another directory and then copy manage.py (and/or other missing default files) to your current project directory. On Wednesday, August 24, 2016 at 3:42:57 PM UTC+7, Lekan Wahab wrote: > > Thanks for getting back to me. > ​So, i just figure

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
So, I have been handed the other part of the project which now contains everything except the manage.py file(which i have created). Also, the project is quiet old and some of the dependencies are either no longer being managed or don't exist anymore.(unobase for an example). As such, i was handed

Re: Running Django Project Locally

2016-08-24 Thread Mike Dewhirst
On 24/08/2016 6:42 PM, Lekan Wahab wrote: Thanks for getting back to me. ​So, i just figured *manage.py* would also require the *settings.py* which is missing now. What do i do about that? That depends. Is the system currently working? If so there will be a bunch of settings somewhere and

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
Thanks for getting back to me. ​So, i just figured *manage.py* would also require the *settings.py* which is missing now. What do i do about that? Lekan​ On Wed, Aug 24, 2016 at 8:48 AM, Mike Dewhirst wrote: > On 24/08/2016 5:23 PM, Lekan Wahab wrote: > >> Good morning, >> I was recently given

Re: Running Django Project Locally

2016-08-24 Thread Mike Dewhirst
On 24/08/2016 5:23 PM, Lekan Wahab wrote: Good morning, I was recently given  a django project to manage at work. However, i noticed the project has neither a django-admin.py or a manage.py file. Is that normal? There is usually a manage.py file in the root of the project. django-admin.py is

Re: Running Django Project Locally

2016-08-24 Thread Asad Jibran Ahmed
Hi, It's definitely weird to not have a manage.py since all new Django projects should have it by default. But the manage.py file is pretty simple, and you can just paste this inside a new manage.py: #!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefaul

Re: Running Django tests for postgres_tests

2016-07-20 Thread Tim Graham
You need to use a custom settings module that uses the postgresql database backend. https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#using-another-settings-module On Tuesday, July 19, 2016 at 11:37:35 PM UTC-4, premdjango wrote: > > I'm trying to run django t

Re: running django 1.9 problem

2016-07-13 Thread Sergiy Khohlov
Simple way is using virtual environment. In this case version of system is not important. I'm using Mac for coding without any issues. 12 лип. 2016 14:28 "Nicolas Favede" пише: > hi i am a bit used to python i have a mac coming with 2.7.6 version and > install 3.4 that i can use if i call > i in

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
Glad to hear it, sorry I wasn't more help. On Fri, Apr 15, 2016 at 10:49 AM, wrote: > Hey John, > cool it runs now. > I had multiple problems: > > 1.) I granted ALL rights to my user on the test DB. > ==> This solved the issue with the TransactionManagementError. > > 2.) I had to do some changes

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hey John, cool it runs now. I had multiple problems: 1.) I granted ALL rights to my user on the test DB. ==> This solved the issue with the TransactionManagementError. 2.) I had to do some changes in my configuration and play around. Afterwards the tests were running. But not all green :-| Tha

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
No I have not added a target. The reason is that there is a class deriving from NoseTestSuiteRunner. This class defines the run_tests function which modifies the test_labels passed to the base 'constructor'. If I add a Target for a single test (testclass.testMethod) then just this test method wo

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
The next step (for me at least) would be to start removing/commenting out things from the tests file until you stop getting the error. Hopefully that will tell you what statement(s) may be causing the problem. Although I fear you may be correct in thinking this is a configuration issue. Have you t

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, I did now comment out those two files, but still get the same error. Maybe I have a wrong configuration or so. I'm quite new in Django / Python. Regards schaf Am Freitag, 15. April 2016 15:11:40 UTC+2 schrieb John Griebel: > > That's what I would try. > > On Fri, Apr 15, 2016 at 9:02 AM

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
That's what I would try. On Fri, Apr 15, 2016 at 9:02 AM, wrote: > Hi John, > thanks, but I did already check for @transaction.commit_manually in the > code, but PyCHarm serahc just finds this in the > virtualenv/python2.7/site-packages/django_extensions/management/commands. > So in my code ther

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread schaf . mh
Hi John, thanks, but I did already check for @transaction.commit_manually in the code, but PyCHarm serahc just finds this in the virtualenv/python2.7/site-packages/django_extensions/management/commands. So in my code there is nothing, would you recommend to comment those out, even if it is not

Re: Running Django-Test fails with TransactionManagementError

2016-04-15 Thread John Griebel
If you have methods using the @transaction.commit_manually decorator, comment those out temporarily. You should get a more helpful error message after doing so. On Fri, Apr 15, 2016 at 4:44 AM, wrote: > Hi All, > I took over some projects written with Python 2.7 / Django 1.5.1. > For unit tests

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-15 Thread Avraham Serour
I think a more common case is programmer error, you may yourself harm the system because of a bug you introduced, I once deleted a folder one level too high (deleted the parent folder of the folder I intended to delete) if the user only had permissions to only what it is supposed to do I would just

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Carlos A. Carnero Delgado
> ... Should I try to use a user that is not a sudoer or does it not really matter? You should use the least privileged user you can. In the (unlikely or not) event of an exploit and the user can gain access to console, what can happen? Do you trust the system's configuration? I think that in a p

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Gergely Polonkai
Hello, the problem of the root access usually comes into play when your site gets hacked (or if you don't trust the framework written by someone else, which is not always a bad idea). Up until then, you can safely run your application under root privileges. When your site gets hacked, the main go

Re: running Django 1.5.1, considering upgrade to 1.5.4. feedback?

2013-10-20 Thread Lachlan Musicman
You are incorrect when you say "the security related items on the release notes from 1.5.2 up to 1.5.4 did not seem critically urgent". Francois get's it right - they may be non critically urgent for *your* installation - but for a live, web facing system they are important. And that's the factor

Re: running Django 1.5.1, considering upgrade to 1.5.4. feedback?

2013-10-20 Thread Thiago Carvalho D' Ávila
Very easy upgrade, just read the release notes.. 2013/10/20 François Schiettecatte > Hi > > It depends on how the security issues impact you. Running on an intranet > behind a firewall is different than running on the open internet. I have > three sites running on the open internet and keep up

Re: running Django 1.5.1, considering upgrade to 1.5.4. feedback?

2013-10-20 Thread François Schiettecatte
Hi It depends on how the security issues impact you. Running on an intranet behind a firewall is different than running on the open internet. I have three sites running on the open internet and keep up with security releases because it is one less thing to worry about. Cheers François On Oc

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
On 04/27/2011 04:06 PM, Kenny Meyer wrote: Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny Never mind. More pdb action and I figured out that I had overwritten DJANGO_SETTINGS_MODULE at the bas

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
On 04/27/2011 04:06 PM, Kenny Meyer wrote: Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny Kenny, This is *exactly* what I was looking for. Unfortunately it doesn't work. It keeps saying that

Re: Running Django tests from Python

2011-04-27 Thread Kenny Meyer
Hi Shawn, http://docs.djangoproject.com/en/dev/ref/django-admin/#running-management-commands-from-your-code Does this answer your question? Kenny On Wed, Apr 27, 2011 at 12:41 PM, Shawn Milochik wrote: > Sorry, I realize that last post is missing the context of the original > question. > Ple

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
Sorry, I realize that last post is missing the context of the original question. Please see this: https://groups.google.com/d/topic/django-users/-4f3J1bJ10k/discussion Thanks, Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Running Django tests from Python

2011-04-27 Thread Shawn Milochik
I figure it's been long enough that I can bump this post. I'm currently using subprocess to do this. There must be an easy way to simply invoke the tests from within Python. So, how do you (within Python), do the equivalent of the following?: ./manage.py test myapp1, myapp2, myapp3 Thanks,

Re: Running django-admin.py Commands without a Shell

2010-07-06 Thread Russell Keith-Magee
On Wed, Jul 7, 2010 at 1:39 AM, maxweld wrote: > Thanks Russ for the information. > > I am very interested in the new self.stdout and self.stderr feature of > management.commands. I can see that this is implemented in trunk for > some commands but not yet for others. I guess the others will come i

Re: Running django-admin.py Commands without a Shell

2010-07-06 Thread maxweld
Thanks Russ for the information. I am very interested in the new self.stdout and self.stderr feature of management.commands. I can see that this is implemented in trunk for some commands but not yet for others. I guess the others will come in time, although maybe I could help by contributing some

Re: Running django-admin.py Commands without a Shell

2010-06-21 Thread Russell Keith-Magee
On Tue, Jun 22, 2010 at 4:08 AM, maxweld wrote: > I am working with my virtual hosting provider to enable him support > Django. I have used him for ages, and having converted myself to > Django would like to help establish another hosting provider with > support for Django. > > I have a configurat

Re: Running django on IIS

2010-04-21 Thread CrabbyPete
I tried for a while, and finally switched to Apache on Windows. It works great and easy to set up. On Apr 21, 6:29 am, Nick wrote: > Hiya > > I have exactly the same problem as described here. > > Did you (or anyone) find a fix or workaround for this? > > Cheers! > Nick. > > On Apr 14, 12:24 pm,

Re: Running django on IIS

2010-04-21 Thread Nick
Hiya I have exactly the same problem as described here. Did you (or anyone) find a fix or workaround for this? Cheers! Nick. On Apr 14, 12:24 pm, Paweł Roman wrote: > > I suspect it is trying to import Http but can't. > > > Fire up python (Start -> Python Interactive Shell, or Start -> Run -

Re: Running django on IIS

2010-04-14 Thread Paweł Roman
> I suspect it is trying to import Http but can't. > > Fire up python (Start -> Python Interactive Shell, or Start -> Run -> > cmd -> type python), and type: > > import Http > If that doesn't work, you haven't installed it properly. See the > following quote from the Django wiki: > > "•Go to c:\pyi

Re: Running django on IIS

2010-04-14 Thread Sam Lai
I suspect it is trying to import Http but can't. Fire up python (Start -> Python Interactive Shell, or Start -> Run -> cmd -> type python), and type: import Http If that doesn't work, you haven't installed it properly. See the following quote from the Django wiki: "•Go to c:\pyisapie\source\PyI

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 2:44:26 pm Ramdas S wrote: > > > cool - this worked out of the box - but no css and js - can I serve > > > media from tornado, and if so, a pointer as to how? > > > > solved - managed to run several django sites of an nginx instance using > > virtual hosts and individual tor

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 8:07:55 pm Javier Guerra wrote: > On Tue, Sep 29, 2009 at 4:24 AM, Kenneth Gonsalves > > wrote: > > will document after trying it in production - a zillion times faster > > faster than. ? flup? faster than apache/mod_wsgi -- regards kg http://lawgon.livejournal.c

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Javier Guerra
On Tue, Sep 29, 2009 at 4:24 AM, Kenneth Gonsalves wrote: > will document after trying it in production - a zillion times faster faster than. ? flup? -- Javier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 2:44:26 pm Ramdas S wrote: > can I serve media > > > > from tornado, and if so, a pointer as to how? > > > > solved - managed to run several django sites of an nginx instance using > > virtual hosts and individual tornado servers for each virtual host. > > Coolness > > Kenne

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Ramdas S
On Tue, Sep 29, 2009 at 2:32 PM, Kenneth Gonsalves wrote: > > On Saturday 19 Sep 2009 5:13:39 pm Kenneth Gonsalves wrote: > > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > > > he module: > > > > > > import django.core.handlers.wsgi > > > import os > > > import tornado.httpserve

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Saturday 19 Sep 2009 5:13:39 pm Kenneth Gonsalves wrote: > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > > he module: > > > > import django.core.handlers.wsgi > > import os > > import tornado.httpserver > > import tornado.ioloop > > import tornado.wsgi > > > > de

Re: Running Django on Tornado's HTTP server

2009-09-19 Thread Antoni Aloy
2009/9/19 Kenneth Gonsalves : > > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: >> he module: >> >>     import django.core.handlers.wsgi >>     import os >>     import tornado.httpserver >>     import tornado.ioloop >>     import tornado.wsgi >> >>     def main(): >>         os.environ["DJAN

Re: Running Django on Tornado's HTTP server

2009-09-19 Thread Kenneth Gonsalves
On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > he module: > > import django.core.handlers.wsgi > import os > import tornado.httpserver > import tornado.ioloop > import tornado.wsgi > > def main(): > os.environ["DJANGO_SETTINGS_MODULE"] = 'myapp.settings' >

Re: Running Django on Tornado's HTTP server

2009-09-15 Thread Brian
Thanks ... this link pointed me in the right direction. Should I be able to serve up admin media using just Django and Tornado? If so, I haven't found the right combination of paths / urls etc. in settings.py to get that working. The Tornado doc describes how to "serve static files from Tornado

Re: Running Django on Tornado's HTTP server

2009-09-15 Thread fruits
media files for admin is handled by the django dev server. So when you change the server, you have to serve admin media file yourself. http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id3 On Sep 15, 9:42 am, Brian wrote: > I have a small Django app under development and was able

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Brian
I have a small Django app under development and was able to get this running using the github update. My app runs and is very responsive with Tornado. Some of my admin site layout is out of whack, but it may be my settings or my bug. Formatting and CSS I created on my own looks good (e.g. graphi

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Ismail Dhorat
Interesting, i would like to see how tornado stacks up to Lighttpd? Regards, Ismail On Mon, Sep 14, 2009 at 7:29 PM, Antoni Aloy wrote: > > 2009/9/13 Antoni Aloy : >> 2009/9/13 Bret Taylor : >>> >>> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >>> web server/framework we

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Antoni Aloy
2009/9/13 Antoni Aloy : > 2009/9/13 Bret Taylor : >> >> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >> web server/framework we built at FriendFeed that we open sourced last >> week (see http://bret.appspot.com/entry/tornado-web-server). >> >> The underlying non-blocking HT

Re: Running Django on Tornado's HTTP server

2009-09-13 Thread Antoni Aloy
2009/9/13 Bret Taylor : > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > web server/framework we built at FriendFeed that we open sourced last > week (see http://bret.appspot.com/entry/tornado-web-server). > > The underlying non-blocking HTTP server is fairly high perform

Re: Running django tests

2009-08-10 Thread Filip Gruszczyński
Indeed it helped. Thanks a lot, Karen. 2009/8/10 Karen Tracey : > 2009/8/10 Filip Gruszczyński >> >> Hi! >> >> I would like to run django source code tests, but as soon as I do it >> (after specifying the settings file), I get all kinds of exceptions. >> Any idea, what am I doing wrong? I post t

Re: Running django tests

2009-08-10 Thread Karen Tracey
2009/8/10 Filip Gruszczyński > > Hi! > > I would like to run django source code tests, but as soon as I do it > (after specifying the settings file), I get all kinds of exceptions. > Any idea, what am I doing wrong? I post the exceptions below. > > grusz...@gruszczy-laptop:~/django/tests# PYTHONP

Re: Running django app on apache server

2009-06-10 Thread Dhruv Adhia
So I finished editing httpd.conf file as mentioned here http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ I also have web sharing turned on from system preferences. I have django project called myPollsApp and I would like to now see it on apache server. How do I proceed further? On

Re: Running django app on apache server

2009-06-10 Thread Dhruv Adhia
ok found it! On Wed, Jun 10, 2009 at 2:35 PM, Dhruv Adhia wrote: > I have installed mod_python and I on my way to edit httpd.conf but could > not find the file. May I know where can I find it? > > Thanks, > > > On Wed, Jun 10, 2009 at 1:20 PM, Dhruv Adhia wrote: > >> Thanks Alex. >> >> >> On We

Re: Running django app on apache server

2009-06-10 Thread Dhruv Adhia
I have installed mod_python and I on my way to edit httpd.conf but could not find the file. May I know where can I find it? Thanks, On Wed, Jun 10, 2009 at 1:20 PM, Dhruv Adhia wrote: > Thanks Alex. > > > On Wed, Jun 10, 2009 at 1:15 PM, Alex Gaynor wrote: > >> >> >> On Wed, Jun 10, 2009 at 3:1

Re: Running django app on apache server

2009-06-10 Thread Dhruv Adhia
Thanks Alex. On Wed, Jun 10, 2009 at 1:15 PM, Alex Gaynor wrote: > > > On Wed, Jun 10, 2009 at 3:13 PM, Dhruv Adhia wrote: > >> >> Hello, >> >> Can anybody explain me how would I run django app on apache server >> other than development server? >> >> Thank you, >> Dhruv >> >> > I suggest you re

Re: Running django app on apache server

2009-06-10 Thread Alex Gaynor
On Wed, Jun 10, 2009 at 3:13 PM, Dhruv Adhia wrote: > > Hello, > > Can anybody explain me how would I run django app on apache server > other than development server? > > Thank you, > Dhruv > > > I suggest you read the documentation on how to deploy django: http://docs.djangoproject.com/en/dev/ho

Re: running django with wsgi over apache

2009-05-24 Thread Gabriel
Graham Dumpleton escribió: > FWIW, the reason that mod_wsgi documentation uses append() is > specifically so that it will highlight when people use module names > that conflict with standard modules. But then, Django is part of the > problem here in that it allows/encourages people to not use site

Re: running django with wsgi over apache

2009-05-24 Thread Gabriel
Sam Chuparkoff escribió: > The reason python found the standard module instead of your 'profile' > module is that you appended your paths to the end of sys.path. If you > had added them to the beginning of the list, python would have found > your 'profile' module instead of the standard one. Examp

Re: running django with wsgi over apache

2009-05-24 Thread Graham Dumpleton
On May 25, 3:42 am, Sam Chuparkoff wrote: > On Sun, 2009-05-24 at 13:27 -0300, Gabriel wrote: > > The problem was with one of the applications 'profile'. It seems it > > already exists somewhere. > > Correct, there is a standard python module called profile. > > $ python > Python 2.6.2 (r262:71

Re: running django with wsgi over apache

2009-05-24 Thread Sam Chuparkoff
On Sun, 2009-05-24 at 13:27 -0300, Gabriel wrote: > The problem was with one of the applications 'profile'. It seems it > already exists somewhere. Correct, there is a standard python module called profile. $ python Python 2.6.2 (r262:71600, May 7 2009, 21:32:12) [GCC 4.1.2 (Gentoo 4.1.2 p1.0.

Re: running django with wsgi over apache

2009-05-24 Thread Gabriel
The problem was with one of the applications 'profile'. It seems it already exists somewhere. I renamed it to userprofile and now it works ok :) > url(r'^profile/', include('profile.urls')), Regards. --~--~-~--~~~---~--~~ You received this message because yo

Re: running django with wsgi over apache

2009-05-24 Thread Gabriel
Sam Chuparkoff escribió: > > Since you are getting an import error and claim this works under a > different environment, the salient difference may be sys.path. Your > problem involves urlconfig, so you should post settings.ROOT_URLCONF > and your urlconfig, and explain where your urls.py file or

Re: running django with wsgi over apache

2009-05-23 Thread Sam Chuparkoff
On Sat, 2009-05-23 at 16:55 -0300, Gabriel wrote: > I can make django work under wsgi. > > I configured apache to run wsgi and the test script works. > > This is the vhost conf: > > > ServerName test.banshee.lnx > DocumentRoot "/home/www/python" > ErrorLog /home/gabriel/pywks/test/

Re: Running django test suite

2009-04-20 Thread jeffhg58
reopened? Failure 2- Any recommendations on how to resolve the windows error? Thanks, Jeff - Original Message - From: jeffh...@comcast.net To: django-users@googlegroups.com Sent: Friday, April 17, 2009 1:19:05 PM GMT -06:00 US/Canada Central Subject: Re: Running django test

Re: Running django test suite

2009-04-17 Thread jeffhg58
- Original Message - From: "Karen Tracey" To: django-users@googlegroups.com Sent: Friday, April 17, 2009 10:46:27 AM GMT -06:00 US/Canada Central Subject: Re: Running django test suite On Thu, Apr 16, 2009 at 1:26 PM, jeffhg58 < jeffh...@comcast.net > wrote: I re

Re: Running django test suite

2009-04-17 Thread Karen Tracey
On Thu, Apr 16, 2009 at 1:26 PM, jeffhg58 wrote: > > I recently installed django 1.1 beta and I needed to run the django > test suite. So, under the tests directory I executed runtests.py. I > received some errors when trying to execute all the tests. I was > expected that all the tests would hav

Re: Running Django admin site using Lighttpd

2009-04-10 Thread stephendwolff
Here's a lighttpd config (just the part for a single website at fictional ip '1.2.3.4') project lives in the 'user' home folder, - _project will be your django project folder - ie the one with 'manage.py' look at the lighttpd docs for the specifics of the "main" options. email me off list if yo

Re: Running django on a web hosting account

2009-04-10 Thread Konrad Martin
Hi Sergio > - Google App Engine[1] - you will need adapt somethings in your code. There is the project appEnginePatch to deploy django on Google appEngine out of the box. http://code.google.com/p/app-engine-patch/wiki/Documentation The app-engine-patch has got a ready made sample. Download http

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Karim Hamdan
Thanks a lot for the replies. It seems that I was following the wrong HowTo. To make things clear, here's what I am trying to do. I am actually new to using Django so I followed the 4 tutorials provided on Django's website, and everything (admin site, polls site) was working fine using the developm

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Adam N
On Apr 9, 10:51 am, Daniel Roseman wrote: > On Apr 9, 3:35 pm, Karim Hamdan wrote: > > > Let me rephrase my question. I followed > > thisHowTo > > on this group that describes how to run Django using lighty with fcgi, > >

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Daniel Roseman
On Apr 9, 3:35 pm, Karim Hamdan wrote: > Let me rephrase my question. I followed > thisHowTo > on this group that describes how to run Django using lighty with fcgi, > I can access my project website successfully but I fail

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Karen Tracey
On Thu, Apr 9, 2009 at 10:35 AM, Karim Hamdan wrote: > Let me rephrase my question. I followed > thisHowTo > on this group that describes how to run Django using lighty with fcg

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Karim Hamdan
Let me rephrase my question. I followed thisHowTo on this group that describes how to run Django using lighty with fcgi, I can access my project website successfully but I fail to a

Re: Running Django admin site using Lighttpd

2009-04-08 Thread Karim Hamdan
When I try to access the admin site using "http://localhost/admin"; I get a 404 not found error instead of getting the login page to enter my admin credentials to log in the admin site. -- Karim Hamdan --~--~-~--~~~---~--~~ You received this message because you ar

Re: Running Django admin site using Lighttpd

2009-04-08 Thread Karen Tracey
On Wed, Apr 8, 2009 at 8:30 PM, Karim Hamdan wrote: > > Hi all, > > I have been trying to run my django site using lighttpd rather than > using the development server that is shipped with django and I managed > to run the site of the project but I failed to run the admin site. Any > ideas how I c

Re: Running django on a web hosting account

2009-04-07 Thread dls
Graham: > Is WebFaction still using mod_wsgi 2.0 though? > > Latest version of mod_wsgi is 2.3 (which is over 6 months old) with > 2.4 coming out real soon now and with 3.0 to follow not long after > that. Yes, the mod_wsgi appears to be frozen at v2.0. Interestingly, mod_python appears to be up

  1   2   >