Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-17 Thread TITAS ONLINE MARKET
Thanks

On Mon, 17 Apr 2023, 11:42 am Fortune Osho,  wrote:

> You can simply run gunicorn with unicorn workers... which is very
> performance using uvloop... test it performance against pure gunicorn...
> note that performance is not totally dependent on server used(a whole lot
> of things can affect performance like moddlewares, serialization etc)
>
>
> On Sun, Apr 16, 2023 at 5:34 PM Chris Barber 
> wrote:
>
>> Hello
>>
>> Production django app, currently 100% sync views, running under gunicorn
>> with gevent worker class.
>>
>> @andrewgodwin suggests here it is possible to migrate slowly, just run
>> hybrid sync-async and add or convert views as desired
>> https://www.youtube.com/watch?v=19Uh_PA_8Rc=1728s
>>
>> But to get a single async view one has to switch to uvicorn workers or
>> similar, right? Now one is no longer getting the gevent patching for sync
>> views, which could be a major impact on performance/scaling, and could
>> trigger re-evaluation of the production deployment & tuning!
>>
>> Questions:
>>
>> 1. How to approach this? It has me wondering if monkey.patch_all() should
>> be ported to asyncio and tested under uvicorn. This would smooth the
>> transition since the sync views should perform and scale roughly the same
>> as before.
>>
>> 2. Also an important technical question on how sync views under ASGI
>> work. By default they will run all in the same thread (*per worker*)
>> which could be really bad for performance with tons of sync views, correct?
>> If I enable DJANGO_ALLOW_ASYNC_UNSAFE, then the sync views will be run in
>> more threads, right? How many threads?Should I expect to have to tune this?
>>
>> In general, regardless of the approach, one could presumably A/B test in
>> a live environment - run some workers / nodes under uvicorn, partition the
>> traffic accordingly, and see how it compares. Tune, stress test, and then
>> rolling transition.
>>
>> -C
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/8cc88d44-df9f-4232-8f57-89a1b07fb769n%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABqs0Mwr%3DXjg6OLUAN9kxsqCKREJW1%2BtrkDHbTq0pnazKgqQkQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHdtJhU-ohRUcqju5xKkmf5vEcJ0p%2BHJtEP7zB13HC_4B3CJGw%40mail.gmail.com.


Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-14 Thread TITAS ONLINE MARKET

Setting up a new Django project doesn't require much code copying, my 
friend. This can be done more simply and easily. You follow the new 
tutorial. Also if you have problem knock me I don't know much but I would 
be happy to discuss with you.
On Tuesday, April 11, 2023 at 6:44:53 PM UTC+6 Michael Starr wrote:

> You probably weren't careful enough following instructions. The beginner's 
> tutorial is self-contained and allows a complete Django project to be made. 
> Re-read everything word-for-word and then come back with some hypotheses 
> for us to test for you.
> Michael
>
> On Tuesday, April 4, 2023 at 9:44:38 AM UTC-7 Tanveer wrote:
>
>> 0
>> 
>>
>> I know this question has been asked before, but I haven't found an answer 
>> that solves my situation.
>>
>> I'm looking at the Django tutorial, and I've set up the first URLs 
>> exactly as the tutorial has it, word for word, but when I go to 
>> http://127.0.0.1:8000/, it gives me this error: but when i go to 
>> http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
>> wrong? i am using python version 3.11.1 please let me know for any other 
>> info
>> urls.py
>>
>> from django.contrib import admin
>> from django.urls import path, include
>> from django.conf.urls.static import static
>> from django.conf import settings
>> from .views import home
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('', home)
>>   ]
>>
>> views.py
>> from django.http import HttpResponse
>> from django.shortcuts import render
>>
>> # Create your views here.
>> def home(request):
>> return render(request,home.html,{})
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82c81da4-b9ce-4985-8387-ba1f63985ca2n%40googlegroups.com.


Re: Shopping cart implementation for Classified Ads

2020-11-23 Thread Support Online
3

On Mon, 23 Nov 2020, 09:39 Ram,  wrote:

> Hi,
>
> We are trying to understand what is the best Shopping solution that we
> could use to implement Classfied Ads where users will be charged for
> certain number of Ads that they can post in a month. Our important
> requirements for this shopping card implementation are
> 1) Ofcourse secure transactions
> 2) Scalable
> 3) Affordable
>
> I really appreciate if you can share any best solution for our use case.
>
> Best Regards,
> ~Ram
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1jvrnxmY0W7sxwnz6gh3JuLPD6aKXcLo%3DhVCwFmxssWA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANyoXTBdofXR-SVcKFFGYBg5r_TZFGemjgL3uCVZ4viSw8PQ1g%40mail.gmail.com.


Re: Hi, I'm new django. I want to learn Django. What's the first step.

2019-09-01 Thread WebTrainingRoom Online
Hi!
you may find this useful
https://www.webtrainingroom.com/python/django-project

Thanks


On Sun, Sep 1, 2019 at 7:07 PM Jorge Luis Callalle Torres <
jlcalla...@gmail.com> wrote:

> Hi, I'm new django. I want to learn Django.  What's the first step
> What advice you could give me.
> Any course, resources, or books
>
> thanks a lot friends
>
> --
> *Jorge Luis Callalle Torres*
> 5359480 / 934835047
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALps_2HgbSwAWo7fwFoLJ7tbz4poCtqOkKs3jQLMj1gQ97Wf%3Dg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGOwOh8VaEFSM9j4gtSwQTfW7mi2%2BnfpMp7COVGPMrYjnqaCeg%40mail.gmail.com.


Re: Django Interview Questions

2018-04-29 Thread Online Interview Questions
30+ Latest Django interview questions 

Q1. Is Django free?

Yes, Django is free open source web framework for Python
Q2. Django is based on which design pattern.

Django closely follows the MVC (Model View Controller) design pattern, 
however, it does use its own logic in the implementation. Because the “C” 
is handled by the framework itself and most of the excitement in Django 
happens in models, templates, and views, Django is often referred to as an 
MTV framework. In the MTV development pattern:

   - M stands for “Model,” the data access layer. This layer contains 
   anything and everything about the data: how to access it, how to validate 
   it, which behaviors it has, and the relationships between the data.
   - T stands for “Template,” the presentation layer. This layer contains 
   presentation-related decisions: how something should be displayed on a Web 
   page or other type of document.
   - V stands for “View,” the business logic layer. This layer contains the 
   logic that accesses the model and defers to the appropriate template(s). 
   You can think of it as the bridge between models and templates.

Further reading https://djangobook.com/model-view-controller-design-pattern/
Q3. When and who create Django?

According to https://en.wikipedia.org/wiki/Django_(web_framework), Django 
was created in the fall of 2003, when the web programmers at the Lawrence 
Journal-World newspaper, Adrian Holovaty and Simon Willison, began using 
Python to build applications. It was released publicly under a BSD license 
in July 2005. The framework was named after guitarist Django Reinhardt.
Q4. List server requirement to install Django Framework.

As Django is Python Framework, in order to install Django Python is 
required.Django comes with an inbuilt lightweight web server that you can 
use for the testing purpose.If you are using Django on production Apache 
with mod_wsgi is required.
Q5. List the database backends supported by Django Framework?

Django officially supports four database backends, they are

   - PostgreSQL
   - MySQL
   - SQLite
   - Oracle

In addition to these, you can also use following 3rd parties

   - SAP SQL Anywhere
   - IBM DB2
   - Microsoft SQL Server
   - Firebird
   - ODBC

Q6. What is recommended way to install Django?

Installing using pip is the recommended way to install Django Framework. 
Below are the steps to install official release of Django with pip

   - Install pip.
   - Configure virtualenv and virtualenvwrapper
   - Once virtual environment is created and activated, enter the command pip 
   install Django to install Django

Q7. How to install the development version of Django

Follow the below steps to Install the development version of Django 
Framework.

   - Check out Django’s main development branch
   
$ git clone https://github.com/django/django.git


   - Make sure that the Python interpreter can load Django’s code. The most 
  convenient way to do this is to use virtualenv, virtualenvwrapper, and 
pip.
  - After setting up and activating the virtualenv, run the following 
  command:
   
$ pip install -e django/

Source:https://docs.djangoproject.com/en/2.0/topics/install/
Q8. Where are Django migrations stored?

You can think Django Migrations as version control sytem for your 
database/Model.It keep track of changes done in your application 
Models/Table like adding a field, deleting a model, etc. Migrations in 
Django are stored as an on-disk format, referred to here as “migration 
files”. These files are actually just normal Python files with an 
agreed-upon object layout, written in a declarative style.

A basic migration file looks like this:

from django.db import migrations, models

class Migration(migrations.Migration):

dependencies = [('migrations', '0001_initial')]

operations = [
migrations.DeleteModel('Tribble'),
migrations.AddField('Author', 'rating', models.IntegerField(default=0)),
]

Further Reading https://docs.djangoproject.com/en/2.0/topics/migrations/
Q9. How a request is processed in Django?

In Django whenever a request is made by a user, it goes through following 
steps:

   - Django determines the root URLconf module to use. Ordinarily, this is 
   the value of the ROOT_URLCONF setting, but if the incoming HttpRequest 
   object has a urlconf attribute (set by middleware), its value will be 
   used in place of the ROOT_URLCONF setting.
   - Django loads that Python module and looks for the variable 
   urlpatterns. This should be a Python list of django.urls.path() and/or 
   django.urls.re_path() instances.
   - Django runs through each URL pattern, in order, and stops at the first 
   one that matches the requested URL.
   - Once one of the URL patterns matches, Django imports and calls the 
   given view, which is a simple Python function (or a class-based view). The 
   view gets passed the following arguments:

newbie questions: common components in django

2009-07-18 Thread online

Hi all,

I know i can have common stuff like this in django



{% include "header.html" %}


blah


{% include "footer.html" %}


but it seems i need to pass data footer.html and header.html every
time i include these pages?


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@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 captcha

2009-05-21 Thread online

So i have to install svn on mymachine? Why people make download so
complicated...






On May 20, 10:22 pm, jai <jayapa...@gmail.com> wrote:
> svn checkouthttp://django-simple-captcha.googlecode.com/svn/trunk/
> django-simple-captcha-read-only
>
> On May 21, 9:30 am, online <online.service@gmail.com> wrote:
>
> > Could anyone please recommend a open source library captcha working
> > fine with django?
>
> >http://code.google.com/p/django-simple-captcha/ looks but i just
> > cannot find where to download.
>
> > 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@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 captcha

2009-05-20 Thread online

Could anyone please recommend a open source library captcha working
fine with django?

http://code.google.com/p/django-simple-captcha/  looks but i just
cannot find where to download.

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@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: disable django cache

2009-05-14 Thread online

Thanks, this kind of design is interesting, not what i expected
though.

I thought the server is running whatever my script i want to use
return render_to_response('home.html')
or
return render_to_response('index.html')



On May 14, 7:55 pm, David Zhou <da...@nodnod.net> wrote:
> On Thu, May 14, 2009 at 9:53 PM, online <online.service@gmail.com> wrote:
>
> > Whatever i changed 'home.html' to other page i always get the same
> > result.
>
> Are you restarting your serving?  If by "changed home.html to other
> page" you mean you modified your view function to return a different
> template, then make sure you restart your server.
>
> -- dz
--~--~-~--~~~---~--~~
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: disable django cache

2009-05-14 Thread online

This is my code


from django.http import HttpResponse
from django.template import Context, loader
from django.shortcuts import render_to_response
from django.views.decorators.cache import cache_control
@cache_control(no_cache=True)
def index(request):
#t = loader.get_template('home.html')
return render_to_response('home.html')


i don't think it was browser cache. I have tried both IE and firefox.


Whatever i changed 'home.html' to other page i always get the same
result.


Thanks



On May 14, 2:49 pm, John M <retireonc...@gmail.com> wrote:
> Are you sure it isn't your browser?  have you tried testing your
> concern with curl?
>
> On May 14, 12:19 pm, online <online.service@gmail.com> wrote:
>
> > Hi all,
>
> > I have a small project still under development. I don't set any cache
> > stuff yet. But for somehow django still cache all web pages.
>
> > Why django default uses cache?  How can i disable the all level
> > caches?
>
> > I tried
>
> > from django.views.decorators.cache import cache_control
>
> > @cache_control(private=True)
>
> > and
>
> > from django.views.decorators.cache import never_cache
>
> > @never_cache
>
> > on views.py but not working
>
> > Thanks for any help.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



disable django cache

2009-05-14 Thread online

Hi all,

I have a small project still under development. I don't set any cache
stuff yet. But for somehow django still cache all web pages.

Why django default uses cache?  How can i disable the all level
caches?

I tried

from django.views.decorators.cache import cache_control

@cache_control(private=True)

and

from django.views.decorators.cache import never_cache

@never_cache

on views.py but not working




Thanks for any help.




--~--~-~--~~~---~--~~
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: django setting problem on windows

2009-05-08 Thread online

Thanks all!

 Finally, i got django working with apache 2.2 mod_python3.1

settings:


SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonOption django.root /web
SetEnv DJANGO_SETTINGS_MODULE web.settings
PythonPath "['C:/depot/projects'] + sys.path"
PythonDebug On


Thanks again.



On May 7, 10:45 pm, Phil Mocek <pmocek-list-django-us...@mocek.org>
wrote:
> On Thu, May 07, 2009 at 10:16:44PM -0700, online wrote:
> > Thanks, i tried changing
>
> > 
> > to
> >   or 
>
> Your third attempt is not even valid syntax.  Doesn't it seem a
> little strange that in the other cases you had quotes enclosing a
> string but then in the third, you did not?
>
> Your problem is completely unrelated to with Django, so it's a bit
> out of place on this list.  As Malcom said previously, you need to
> go read about Apache configuration.  It seems that you either
> didn't read or misunderstood what you read.  Given that you
> haven't asked any questions in an attempt to fill in the parts you
> don't understand, it seems likely that you didn't even read any
> relevant Apache docs.
>
> Maybe if you cite the page that you're using as a reference in
> your attempts to use Apache's location directive, and also explain
> your present understanding of it, someone can help guide you to
> whatever part you're missing or misunderstanding.
>
> --
> Phil Mocek
--~--~-~--~~~---~--~~
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: django setting problem on windows

2009-05-07 Thread online

Thanks, i tried changing


to
  or 


still no luck


On May 4, 7:49 am, zayatzz <alan.kesselm...@gmail.com> wrote:
> Posting because i just set up httpd.conf on linux computer few days
> ago and it took me a while to get it working as i wanted to.
>
> If i just compare the way how i set it up and how you did it Then the
> difference is that you have no pythonpath like Malcolm said and
> location should be either "/web/" or "/"
>
> Take a look at 2nd example here :http://docs.djangoproject.com/en/dev/
> howto/deployment/modpython/
>
> Thats the one i used to get it working.
>
> Alan
>
> On May 3, 8:24 am, online <online.service@gmail.com> wrote:
>
> > I have mod_python set working fine with apache.
>
> > I have django setting as following at apache
> > 
> > 
> >     ServerAdmin webmas...@dummy-host2.li
> >     DocumentRoot "C:/depot/projects/web/"
> >     ServerName web
> >     ServerAlias *.web
> >     ErrorLog "logs/dummy-host2.li-error_log"
> >     CustomLog "logs/dummy-host2.li-access_log" common
>
> > 
> >     SetHandler python-program
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE web.settings
> >     PythonOption django.root "C:/depot/projects/web/"
> >     PythonDebug On
> > 
>
> >   
> >     SetHandler None
> >   
>
> >   
> >     SetHandler None
> >   
>
> > 
> > -
>
> > But I always got error
>
> > "ImportError: Settings cannot be imported, because environment
> > variable DJANGO_SETTINGS_MODULE is undefined.
> > "
>
> > Thanks for any help!
--~--~-~--~~~---~--~~
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: django apache on windows setting problem

2009-05-07 Thread online

forgot to mention the error message:

---
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined

---


On May 7, 9:49 pm, online <online.service@gmail.com> wrote:
> django is realy cool. But it is so frustrated to get django work on my
> windows machine.
>
> here is my setting/configures
>
> python setting at httpd.conf:
> --
>
> 
>     Options Indexes FollowSymLinks MultiViews
>     AllowOverride All
>     Order allow,deny
>     allow from all
>     AddHandler python-program .py
>     PythonHandler mod_python.publisher
>     PythonPath "['C:/Python25/Lib/site-packages/mod_python/',]
> +sys.path"
>     PythonDebug On
> 
> --
>
> django setting at vhosts.conf:
>
> -
>         
>     ServerAdmin webmas...@dummy-host2.li
>     DocumentRoot "C:/depot/projects/web/"
>     ServerName web
>     ServerAlias *.web
>     ErrorLog "logs/dummy-host2.li-error_log"
>     CustomLog "logs/dummy-host2.li-access_log" common
>
> 
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     PythonOption django.root "C:/depot/projects/web/"
>     SetEnv DJANGO_SETTINGS_MODULE web.settings
>     PythonPath "['C:/depot/projects/web/'] + sys.path"
>     PythonDebug On
> 
>
>   
>     SetHandler None
>   
>
>   
>     SetHandler None
>   
>
> 
> -
> or you can see from this link:
>
> http://stackoverflow.com/questions/823458/django-apache-on-windows-se...
>
> Any help is much appreciated!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



django apache on windows setting problem

2009-05-07 Thread online

django is realy cool. But it is so frustrated to get django work on my
windows machine.

here is my setting/configures

python setting at httpd.conf:
--


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonPath "['C:/Python25/Lib/site-packages/mod_python/',]
+sys.path"
PythonDebug On

--

django setting at vhosts.conf:

-

ServerAdmin webmas...@dummy-host2.li
DocumentRoot "C:/depot/projects/web/"
ServerName web
ServerAlias *.web
ErrorLog "logs/dummy-host2.li-error_log"
CustomLog "logs/dummy-host2.li-access_log" common



SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonOption django.root "C:/depot/projects/web/"
SetEnv DJANGO_SETTINGS_MODULE web.settings
PythonPath "['C:/depot/projects/web/'] + sys.path"
PythonDebug On


  
SetHandler None
  

  
SetHandler None
  


-
or you can see from this link:

http://stackoverflow.com/questions/823458/django-apache-on-windows-setting-problem


Any help is much appreciated!



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



django setting problem on windows

2009-05-02 Thread online

I have mod_python set working fine with apache.

I have django setting as following at apache


ServerAdmin webmas...@dummy-host2.li
DocumentRoot "C:/depot/projects/web/"
ServerName web
ServerAlias *.web
ErrorLog "logs/dummy-host2.li-error_log"
CustomLog "logs/dummy-host2.li-access_log" common



SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE web.settings
PythonOption django.root "C:/depot/projects/web/"
PythonDebug On


  
SetHandler None
  

  
SetHandler None
  


-

But I always got error

"ImportError: Settings cannot be imported, because environment
variable DJANGO_SETTINGS_MODULE is undefined.
"

Thanks for any help!




--~--~-~--~~~---~--~~
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: Does 1and1 Hosting provide Django prerequisites? [was: installing a development environment on a 1and1.com shared hosting.]

2009-04-21 Thread online service
I have problem to install mod_python to 1and1 dedicated server (Apache
Portable Runtime headrer files are missing).

 apache info:

  Server version: Apache/2.2.3
  Server built:   Sep 11 2006 09:43:18

  OS  info : Fedora Core 6 with Plesk 8.1 (64-bit)






On Tue, Apr 21, 2009 at 3:45 PM, Phil Mocek <
pmocek-list-django-us...@mocek.org> wrote:

>
> On Tue, Apr 21, 2009 at 11:16:06PM +0200, Didine wrote:
> > Is there any way to install & deploy a django application on a
> > 1and1.comshared hosting ?
>
> By asking this question, you seem to assume that subscribers to the
> django-users list are already aware of how this service in which you
> have expressed interest works.  That is not a safe assumption.
>
> I suspect what you meant to ask was, "Does 1and1 Hosting have all the
> prerequisites for running a Django application?"  That is a question
> better suited for 1and1 staff than for the general population of users
> of Django.
>
> Friendly advice: in order to get more help from subscribers to the list,
> you should read
> 
> >
>
> --
> Phil Mocek
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[offTopc]Novas Publicações!

2007-10-02 Thread New Business OnLine
Bom dia Amigos e Amigas!!!

O site do Grupo New Business OnLine tem novas publicações, acesse agora
mesmo o site (http://businessnewonline.blogspot.com/) e fique por dentro das
novas oportunidades da Net!!!
Em uma das publicações explicamos com clareza a dúvida mais frequente em
nossa site, "*Quanto eu posso ganhar por mês na Internet?*
**
Obrigado a todos e desculpa estar invadindo este espaço!


Grupo New Business OnLine Ltda.
http://businessnewonline.blogspot.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-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



http://businessnewonline.blogspot.com/

2007-09-28 Thread New Business OnLine
http://businessnewonline.blogspot.com/



























Grupo New Business OnLine LTDA.
http://businessnewonline.blogspot.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-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Isso é Real!!

2007-09-28 Thread New Business OnLine
 Ganhe Dinheiro! http://businessnewonline.blogspot.com/

Caro amigo(a),

Obrigado por me dar um minuto de sua atenção eu não estou aqui por
acaso. Eu estou te mandando esse e-mail para te deixar aparte de uma grande
oportunidade, oportunidade de ter uma renda extra para complementar seus
ganhos e melhorar sua vida financeira ou até mesmo ser sua única forma de
renda!


Quero lhe apresentar negócios reais que rendem dinheiro mês a mês. O
trabalho a ser feito é muito simples, mas necessita de empenho e dedicação,
mas qualquer pessoa poderá fazer isso. Conheça as oportunidades para começar
a ganhar dinheiro na internet trabalhando em casa ou em qualquer lugar que
tenha um computador ligado na Internet. Leia com muita atenção todo conteúdo
deste e-mail.

Eu não prometo fortunas, como as propagandas de "ganhe R$ 50.000,00 por
mês", você sabe que isso é impossível, mesmo para que já tem uma bagagem
grande de produtos e clientes, trabalhando 24 horas por dia, mas eu garanto
que um valor razoável é possível de se ganhar sim. Um valor que fica acima
da renda média do trabalhador brasileiro.

Todos os dias úteis o site tem atualização de publicaçães de empresas que
pagam comissões por vendas diretas, indiretas ou por simplesmente fazer
divulgação dos seus produtos ou serviços.

Obrigado! E não deixe de visitar diariamente o site e se cadastrar em toda e
qualquer empresa que indicamos lá, Mesmo que elas paguem quantias bem baixa,
na Internet o fluxo é muito alto e com isso o montante final se torna
interessante e se juntar todos os montantes no final do mês sua renta é
suficiente para você ter uma renda acima da média brasileira.

Acesse agora mesmo http://businessnewonline.blogspot.com/


Grupo New Business OnLine Ltda.
http://businessnewonline.blogspot.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-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---