Hey guys, im trying to deploy django using MySQl, Apache 2, and
mod_wsgi, but i am having lots of difficulties which are causing my
sites to go down, i have loaded the mod_wsgi module in the Apache
httpd.conf file successfully, but every time i try to put this line f
WSGIScriptAlias / "/apache/
dj
im sorry, its causing an error 500, but i know its because of an error
in the httpd.conf file, but i dont know what, i have written the sript
WSGIScriptAlias / "/apache/
dj_survey.wsgi" exactly how its supposed to be written but its still
causing the crash, is there anything besides that script tha
thanks, i have seen the error logs and it says "could not import
settings "ash.settings" ( is it on sys path ?)" ash is the name of my
project, also i didnt get a 500 error this time, my website just didnt
load, i added the following configuration to the httpd.conf :
LoadModule wsgi_module modules
Graham thanks for all your help, and patience, i will read the the
information in the link you provided, this is the exact configuration
i added to the httpd.conf file :
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /home/ashtanga/public_html/ash/apache/django.wsgi
the path to my
thanks, i have read your post and i am beginning to understand this
better, i am also trying mod_python as an alternative my project path
is the same /home/ashtanga/public_html/ash
insdie the ash is my Django project and iside it i have my settings.py
and urls.py, i have added the following script
thanks, but what should be inside the __init__.py file ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@
it turns out i have the __init__.py , so i changed the path as you
suggested but now i get this error :
MOD_PYTHON ERROR
ProcessId: 12182
Interpreter:'ashtangayogavideo.com'
ServerName: 'ashtangayogavideo.com'
DocumentRoot: '/home/ashtanga/public_html'
URI:'/ash/'
Loc
i have ran into the same error i get using mod_wsgi, which is :
ExtractionError at /
Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the
Python egg
cache:
[Errno 13] Permission denied: '/.python-eggs'
The Python egg cache directory is current
it would give me the same error, but with a different directory,
thanks a lot guys, i have solved this by putting SetEnv
PYTHON_EGG_CACHE /tmp as follows
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE ash.settings
SetEnv PYTHON_
i have been playing with django using mod_python, so i activated the
admin for my application and instead of the pretty looking page, i
get :
Django administration
Welcome, ashtanga. Change password / Log out
Site administration
Auth
Groups Add Change
Users Add Change
Sites
Sites Ad
im new to mod_python, so could you please tell me how to set ash/media
to serve statically with apache
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this g
im done using mod_python , i have switched to mod_wsgi completely,
thanks guys for all your 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-us...@googlegroups.com.
To unsubscribe from this group,
hey guys, im trying to create a template that uses variables like
{{ paragraph }} , but i cannot find how to get django to render
the paragraph into the variable, i know i have to create a .py file
that uses django's render class to render the paragraph but how can i
connect the html file to the .p
thanks, unfortunately i keep getting a 404, the templates name is
2col.html, its inside ash/templates, the url i have is (r'^paragraph/
$', 'show_para'), and the views is
from django.http import HttpResponse
from django.shortcuts import render_to_response
def show_para(request):
para = "I lo
alright, thanks a lot Syed :P
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
hey guys, im trying to make a volunteer form which has several fields,
like name, address, and other types of information about the
volunteer, and i was wondering how i can make a form that saves the
user input in the database (MySQL) , so far i now i have to create a
forms.py file in the same dir
i know this might sound kinda dumb, but have you tried syncing the
database ? just in case
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send e
VolunteerForm is the name of my form class in forms.py, i put the code
you gave me :
if request.POST:
form = VolunteerForm(request.POST)
if form.is_valid():
fm = form.save()
in my views.py
when i visit the url, i get the form , but when i submit information,
i get a 5
yes, i did inherit from forms.Form , but no, i dont have a model for
my data , i only have a class in forms.py that displays three
charfields for the user, and i use it throuh my views.py like this :
from django.shortcuts import render_to_response
from ash.forms import VolunteerForm
from django.ht
hey guys, im making a form, and im having a problem with the
models.TextField() , when used it displays the text field correctly,
but it allows for the text field to be stretched, is there a way to
set a maximun width and height for it ?
--
You received this message because you are subscribed to
since its by default, ill just use css to contain the box, thanks guys
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-user
hey guys, i have been reading about django sites, but i still dont
understand how to implement it to manage multiple sites using the
admin, i have two domains, ashtangayogavideo.com, and
abilityexplosion.org, im using mod_wsgi in a django project inside
ashtangayogavideo.com, how can i link a model
please check the apache error logs, and post the info so i can be of
more assistance to you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send
no :)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this grou
hey, guys
is it possible to have multiple django projects in one server ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-u
hey guys, im trying to get a script to run, like a view after a user
in the admin interface checks a box and saves the object, is there any
way of accomplishing this without having to rewrite the add_view, and
edit_view ?
--
You received this message because you are subscribed to the Google Grou
thanks for your reply, iv been reading the documentation, and wrote
the code, but theres one thing im having trouble with, i included the
signal connection in my models.py, and passed the model that was there
to the handler function so that it can be tied to that specific model,
like so
class foo(
hey guys, im trying to run a script in the backend of my django
project, i have used django signals to call my script and run it when
foo class is saved, and in the foo class theres a variable that can be
true or false, if its true it calls an infinte loop that runs a
function every x seconds, but
28 matches
Mail list logo