Error Starting Django App using Apache+Mod_Wsgi

2010-11-22 Thread Guddu
All,

I have a problem in starting my Django App using Apache and Mod_Wsgi

I am using Django 1.2.3 and Python 2.6.6 running on Apache 2.2.17 with
Mod_Wsgi 3.3

When I try to access the app from Web Browser, I am getting these
errors.

[Mon Nov 22 09:45:25 2010] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.3
Python/2.6.6 configured -- resuming normal operations

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] mod_wsgi
(pid=1273874): Target WSGI script '/u01/home/apli/wm/app/gdd/pyserver/
apache/django.wsgi' cannot be loaded as Python module.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] mod_wsgi
(pid=1273874): Exception occurred processing WSGI script '/u01/home/
apli/wm/app/gdd/pyserver/apache/django.wsgi'.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] Traceback
(most recent call last):

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/u01/
home/apli/wm/app/gdd/pyserver/apache/django.wsgi", line 19, in


[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] import
django.core.handlers.wsgi

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line
1, in 

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] from
threading import Lock

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
local/lib/python2.6/threading.py", line 13, in 

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] from
functools import wraps

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   File "/usr/
local/lib/python2.6/functools.py", line 10, in 

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] from
_functools import partial, reduce

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] ImportError:
rtld: 0712-001 Symbol PyArg_UnpackTuple was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition


[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyCallable_Check was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyDict_Copy was referenced


[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyDict_Merge was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyDict_New was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyErr_Occurred was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] rtld:
0712-001 Symbol PyErr_SetString was referenced

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   from
module /usr/local/lib/python2.6/lib-dynload/_functools.so(), but a
runtime definition

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191]   of the
symbol was not found.

[Mon Nov 22 09:45:43 2010] [error] [client 108.10.0.191] \t0509-021
Additional errors occurred but are not reported.


I assume that those missing runtime definitions are supposed to be in
the Python executable. Doing an nm on the first missing symbol reveals
that it does exist.

root [zibal]% nm  /usr/local/bin/python | grep -i PyArg_UnpackTuple
.PyArg_UnpackTuple   T   268683204 524
PyArg_UnpackTupleD   537073500
PyArg_UnpackTupled   537073500  12
PyArg_UnpackTuple:F-1 - 224

Please guide.

Regards,
Guddu

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email 

Re: Satchmo product model ER graph?

2012-05-03 Thread Guddu
You could use something like ER Master http://ermaster.sourceforge.net/
or Aqua Studio to generate the Graph.

On May 3, 8:42 am, kooliah 
wrote:
> I need to import an already running database into a satchmo store.
> I started to make an ER graph, as a reference for the fields mapping, by
> myself, but if someone had already done it, i'd like to save time.
>
> Thanks to all
>
> Kooliah

-- 
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: mod_Wsgi Problem

2012-01-04 Thread Guddu
Glad that it helped.

For serving static files, you could read through the Django documentation 
at https://docs.djangoproject.com/en/1.3/howto/static-files/ 

Regards,
Guddu


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/QpODGY2Y6NYJ.
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: admin interface error

2012-01-04 Thread Guddu
Your WSGI must be having a DJANGO_SETTINGS_MODULE specified did you make 
sure that the database specified in that setting file was the one in use 
when you did your syncdb?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DYjnM1v-UHUJ.
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: /?next= not redirect user

2012-01-10 Thread Guddu
The way i did it was to have the following in my login template
(inside the login )



Replace /SiteRoot/url with whatever you would like the user to be
redirected to after a successful login.

Regards,
Guddu

On Jan 11, 7:39 am, Weldan  wrote:
> hi. can anyone show me how to do this . after successfully login user not
> redirected to request.path. thanks for advance

-- 
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 site home page

2012-01-15 Thread Guddu
Hi Marjenni,

Something like this

(r'^$','.views.'),

Replace the variables in <> accordingly

Regards,
Guddu

On Jan 15, 7:39 pm, marjenni  wrote:
> Hi all,
>    A really simple one. What goes in urls.py to set a callback
> function for the base website url?
>
> thanks
>
> mark

-- 
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: What is the best solution to deploy Django on a Windows server?

2013-11-01 Thread Guddu
I have Deployed Django with Apache 2.2 + mod_wsgi on a Windows Server 2003 
Production environment (No Virtualization) and it works like a Charm.

On Friday, 11 October 2013 12:35:06 UTC-3, Augusto Destrero wrote:
>
> A client of mine want to keep its existing Windows Server infrastructure, 
> so I'm forced to deploy my Django based web application on Windows 
> 2003/2007.
>
> The first question is:
>
> is Django production ready on Windows platform?
>
> The second is:
>
> to your knowledge, what is the best way to deploy Django on a Windows 
> server? Apache+mod_wsgi? IIS+Helicon Zoo (
> http://www.helicontech.com/articles/running-django-on-windows-with-performance-tests/
> )?
>
> I always deployed Django on a Linux environment, so I'm a little afraid on 
> this new project? Someone here successfully deployed Django on a windows 
> server?
>
> Thank you very much for your help!
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e353c8d3-98cf-476b-bd0d-c6d708afd244%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: cx_Oracle - Django ORM - Reference Count Increase

2014-12-29 Thread Guddu
Thanks MichielThat was the problem indeed. I had Debug=True. Changing 
it to False solved the issue for me.

Regards,
Guddu

On Saturday, 27 December 2014 19:16:02 UTC-3, Michiel Overtoom wrote:
>
>
> On Dec 27, 2014, at 22:23, Anurag Chourasia wrote: 
>
> > I have a Long Running Python Process that uses Django ORM against Oracle 
> database. 
> > The size of the process keeps on increasing steadily. 
>
> Are you running in Debug mode? 
>
> http://stackoverflow.com/questions/1339293/python-memory-leak-debugging 
> http://www.dimagi.com/django-orm-memory-leaks-in-debug-mode-73877/ 
>
> Greetings, 
>
> -- 
> "You can't actually make computers run faster, you can only make them do 
> less." - RiderOfGiraffes 
>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b1e1b50d-36c4-41d7-af6d-1d02e8437006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.