Django Problem

2010-02-26 Thread Devang
Hi Everyone,

I m developiing a pastebin site for my LAN and i had follow all steps
of following site:

http://docs.djangoproject.com/en/dev/intro/tutorial01/

http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02

But  i m getting following Error after loading admin module in
setting.py(Please Download attached file from Files Section):

So please give anyy suggestion or solution for this error ASAP.. and
also give any pastebin alternative with all steps to develop that
appliccation.

Thank 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 email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django problem

2011-06-20 Thread jaspreet kaur
hii everyone
i am new to django
i am doing application of django
please tell me how to place mytemplates folder in template path of django
means what is the meaning of template path of django

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

2010-02-26 Thread Jirka Vejrazka
> But  i m getting following Error after loading admin module in
> setting.py(Please Download attached file from Files Section):

Hi, you have not provided the error message nor any link where we can
see it (as far as I can see), so it's difficult to judge what the
specific problem is...

  Cheers

Jirka

-- 
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 group at 
http://groups.google.com/group/django-users?hl=en.



xsendfile + django problem

2011-05-25 Thread Renato Beserra
Hey guys,

I am really lost here, i followed this link
http://groups.google.com/group/django-users/browse_thread/thread/b4ceae1956e003e5/2ed48bf40e0226e9?lnk=gst&q=mod_xsendfile#2ed48bf40e0226e9
but
i can't get this to work. I set up apache and xsendfile properly i guess,
but i always got a empty file.

Here is my apache log entry for the file requisition: 192.168.0.199 - -
[25/May/2011:14:49:16 -0500] "GET /test/sendfile HTTP/1.1" 200 307 "-"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko)
Chrome/11.0.696.68 Safari/534.24"

My httpdconf:

 

   Order Deny,Allow
   Allow from all
   XSendFile on
   xSendFilePath /var/www/media/photos



Should i try other solution instead of xsenfile?

Thanks in advance.

-- 
Renato Beserra Sousa

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

2011-06-20 Thread Herman Schistad
On Mon, Jun 20, 2011 at 12:21, jaspreet kaur  wrote:
> please tell me how to place mytemplates folder in template path of django
> means what is the meaning of template path of django

Please Jaspreet, this is clearly stated in the documentation and I see
no need to spam the django-users email list.
Templates are discussed in great length here [1] and here [2]
The most common structures are:
[*] A template folder in your project directory containing templates
to all your apps.
[*] A template folder in all of your apps containing the apps templates.
See the settings.py and more specifically the template loaders and
paths setting. If you get an error page saying it cannot find your
template, then you have the ability to see which directories it in
fact are trying.

Read the documentation if there are any further questions, the Django
docs are great and all your questions should be answered there. If
they are not, see if the same question are asked by someone else at
stackoverflow[3] or in the mailing list before[4]

[1]: https://docs.djangoproject.com/en/dev/topics/templates/
[2]: 
https://docs.djangoproject.com/en/dev/intro/tutorial03/#use-the-template-system
[3]: http://stackoverflow.com/
[4]: https://groups.google.com/forum/#!forum/django-users
-- 
Regards, Herman Schistad

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

2011-06-20 Thread jaspreet kaur
Herman ,thanks a lot

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



Installing Django Problem.

2016-07-03 Thread Steve Burrus
well I uyet again am encountering problems with installing the Django 
server. I managed to get to this point "(stevesenv) 
C:\Users\sbur87\Desktop\steves_dir\stevesenv>" but where exactly do I go 
from here in installing django? Man y thanx to anyone who can help me with 
this "trying" problem of mine. 

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


oracle-django problem

2008-06-09 Thread Harish

hi friends

 i have a django application, which works on postgres as back-end.
now i want to migrate the application  back-end  from postgres to
oracle.

The problem i am facing is that, the existing data table names  in
postgres is too long
(basically  the table name is a combination of application name and
class name), which is not allowed
in oracle. (using oracle 11g) Basically oracle only allows 30
character as table name.

I am looking forward for any solution to my problem


regards
Harish Bhat


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



Singleton + Django problem

2007-08-24 Thread Rodrigue

Hi,

I am developing an application based on django that also uses some
python modules I have written. My problem is that I need one of my
classes to be a singleton. I use this code to do it (mix of Borg and
singleton):

class SomeClass:
   _shared_state = {}

  def __init__(self):
self.__dict__ = self._shared_state
if self.__dict__ != {}:
   return
self.touched = True
...
# rest of the initialisation code
...

This way, I can create as many instances of SomeClass as I need but
each of them shares the same dictionary and I also make sure that the
init code is executed once and only once.

This works fine when I unittest it. But then, I create an instances of
SomeClass in Django and...it does not work...and in the strangest way:
the rest of the initialisation code is executed more than once, but
not everytime.

This behaviour looks as if several different python interpreter were
running, or as if the entire module was reloaded (I started python 2
months ago so I'm not sure under which condition this is possible).
This can only happen if SomeClass._shared_state is wipped away at some
stage, and why and how this happens I can't understand.

Any help or clue about what goes on inside django that could create
this behaviour would be really appreciated.

Thank you in advance.

Regards,
Rodrigue


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



macports and django problem

2008-10-12 Thread David Koppstein

Hi,

I seem to have come across this problem while trying to install Django 
using Macports:

http://mail.python.org/pipermail/pythonmac-sig/2007-September/019181.html

Basically, the django install succeeds, but when I enter the python 
toplevel and do 'import django' I get an ImportError.

As the author of the previous article has stated, I also seem to have 
two versions of python now, one at /opt/local/bin and one at 
/usr/bin/python. Apparently neither of them will 'import django.'

I have updated my $PATH variable properly: 
/sw/bin:/sw/sbin:/macosx-bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/Users/david/bin:/sw/bin:/sw/sbin:/Users/david/godi/bin:/Users/david/godi/sbin:/usr/local/smlnj-110.67/bin:/opt/local/bin:/opt/local/sbin

Has anyone installed Django successfully using MacPorts? I really like 
the idea of MacPorts as a philosophy, especially since it's derived from 
BSD, but it seems poorly integrated with the existing infrastructure.

Thanks for your help,
David

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



Re: xsendfile + django problem

2011-05-25 Thread Renato Beserra
Never mind, I moved the XSendFile on up and the solution is working fine.
Thanks.

2011/5/25 Renato Beserra 

> Hey guys,
>
> I am really lost here, i followed this link
> http://groups.google.com/group/django-users/browse_thread/thread/b4ceae1956e003e5/2ed48bf40e0226e9?lnk=gst&q=mod_xsendfile#2ed48bf40e0226e9
>  but
> i can't get this to work. I set up apache and xsendfile properly i guess,
> but i always got a empty file.
>
> Here is my apache log entry for the file requisition: 192.168.0.199 - -
> [25/May/2011:14:49:16 -0500] "GET /test/sendfile HTTP/1.1" 200 307 "-"
> "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko)
> Chrome/11.0.696.68 Safari/534.24"
>
> My httpdconf:
>
>  
>
>Order Deny,Allow
>Allow from all
>XSendFile on
>xSendFilePath /var/www/media/photos
>
> 
>
> Should i try other solution instead of xsenfile?
>
> Thanks in advance.
>
> --
> Renato Beserra Sousa
>



-- 
Renato Beserra Sousa

-- 
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: Installing Django Problem.

2016-07-03 Thread Mike Dewhirst

On 4/07/2016 12:01 PM, Steve Burrus wrote:

well I uyet again am encountering problems with installing the Django
server. I managed to get to this point "(stevesenv)
C:\Users\sbur87\Desktop\steves_dir\stevesenv>"


It looks as though you have successfully got virtualenv working.

Therefore the short answer to your question is ...

(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django

Cheers

Mike


but where exactly do I go

from here in installing django? Man y thanx to anyone who can help me
with this "trying" problem of mine.Â

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Installing Django Problem.

2016-07-03 Thread Steve Burrus
Well I did tjhis okay "(stevesenv)
C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip
install django" but still the question persists where I go from here? I
remember using "django-admin" before. How do I use that?

On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst  wrote:

> On 4/07/2016 12:01 PM, Steve Burrus wrote:
>
>> well I uyet again am encountering problems with installing the Django
>> server. I managed to get to this point "(stevesenv)
>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>"
>>
>
> It looks as though you have successfully got virtualenv working.
>
> Therefore the short answer to your question is ...
>
> (stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django
>
> Cheers
>
> Mike
>
>
> but where exactly do I go
>
>> from here in installing django? Man y thanx to anyone who can help me
>> with this "trying" problem of mine.Â
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com?utm_medium=email&utm_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installing Django Problem.

2016-07-03 Thread Mike Dewhirst

On 4/07/2016 1:06 PM, Steve Burrus wrote:

Well I did tjhis okay "(stevesenv)
C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but
still the question persists where I go from here? I remember using
"django-admin" before. How do I use that?


Here is a good place to start ...

https://docs.djangoproject.com/en/1.9/

That page covers how the documentation is organised. You need to work 
your way through all the installation steps including database etc.


Then the most important next step is to wrk through the tutorial. Once 
you get that done there are quite a few third party tutorials on the web.


Good luck


Mike






On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote:

On 4/07/2016 12:01 PM, Steve Burrus wrote:

well I uyet again am encountering problems with installing the
Django
server. I managed to get to this point "(stevesenv)
C:\Users\sbur87\Desktop\steves_dir\stevesenv>"


It looks as though you have successfully got virtualenv working.

Therefore the short answer to your question is ...

(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install
django

Cheers

Mike


but where exactly do I go

from here in installing django? Man y thanx to anyone who can
help me
with this "trying" problem of mine.Â

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to a topic in
the Google Groups "Django users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au.

For more options, visit https://groups.google.com/d/optout.


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c75376c1-6bcf-0fea-d3a1-9e74b6657062%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Installing Django Problem.

2016-07-04 Thread Hildeberto Mendonça
I strongly recommend this tutorial for beginners:
http://tutorial.djangogirls.org/en/

I helped me on my first contact with Django. The girls are doing a great
job there.

On Mon, Jul 4, 2016 at 6:15 AM, Mike Dewhirst  wrote:

> On 4/07/2016 1:06 PM, Steve Burrus wrote:
>
>> Well I did tjhis okay "(stevesenv)
>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but
>> still the question persists where I go from here? I remember using
>> "django-admin" before. How do I use that?
>>
>
> Here is a good place to start ...
>
> https://docs.djangoproject.com/en/1.9/
>
> That page covers how the documentation is organised. You need to work your
> way through all the installation steps including database etc.
>
> Then the most important next step is to wrk through the tutorial. Once you
> get that done there are quite a few third party tutorials on the web.
>
> Good luck
>
>
> Mike
>
>
>
>
>
>> On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst > > wrote:
>>
>> On 4/07/2016 12:01 PM, Steve Burrus wrote:
>>
>> well I uyet again am encountering problems with installing the
>> Django
>> server. I managed to get to this point "(stevesenv)
>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>"
>>
>>
>> It looks as though you have successfully got virtualenv working.
>>
>> Therefore the short answer to your question is ...
>>
>> (stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install
>> django
>>
>> Cheers
>>
>> Mike
>>
>>
>> but where exactly do I go
>>
>> from here in installing django? Man y thanx to anyone who can
>> help me
>> with this "trying" problem of mine.Â
>>
>> --
>> 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 > django-users@googlegroups.com>
>> > >.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com?utm_medium=email&utm_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>>
>> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
>> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com
>> <
>> https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 https://groups.google.com/g

Re: Installing Django Problem.

2016-07-04 Thread Steve Burrus
Well I successfully set up the Django server an d then connected to oit BUT
I couldn't use that "syncdb" command to then set the pw and username in the
admin.

On Sun, Jul 3, 2016 at 11:15 PM, Mike Dewhirst 
wrote:

> On 4/07/2016 1:06 PM, Steve Burrus wrote:
>
>> Well I did tjhis okay "(stevesenv)
>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but
>> still the question persists where I go from here? I remember using
>> "django-admin" before. How do I use that?
>>
>
> Here is a good place to start ...
>
> https://docs.djangoproject.com/en/1.9/
>
> That page covers how the documentation is organised. You need to work your
> way through all the installation steps including database etc.
>
> Then the most important next step is to wrk through the tutorial. Once you
> get that done there are quite a few third party tutorials on the web.
>
> Good luck
>
>
> Mike
>
>
>
>
>
>> On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst > > wrote:
>>
>> On 4/07/2016 12:01 PM, Steve Burrus wrote:
>>
>> well I uyet again am encountering problems with installing the
>> Django
>> server. I managed to get to this point "(stevesenv)
>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>"
>>
>>
>> It looks as though you have successfully got virtualenv working.
>>
>> Therefore the short answer to your question is ...
>>
>> (stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install
>> django
>>
>> Cheers
>>
>> Mike
>>
>>
>> but where exactly do I go
>>
>> from here in installing django? Man y thanx to anyone who can
>> help me
>> with this "trying" problem of mine.Â
>>
>> --
>> 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 > django-users@googlegroups.com>
>> > >.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com?utm_medium=email&utm_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>>
>> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
>> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com
>> <
>> https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this gr

Re: Installing Django Problem.

2016-07-04 Thread ludovic coues
I could ask you what error you get when running syncdb. I could tell
you to use manage.py createsuperuser.
But the best advice anyone can give you is to do a tutorial about
django. The django girls one is really great. The one from the
official documentation is shorter. Either one will give you a solid
base for starting to use django.

2016-07-04 16:19 GMT+02:00 Steve Burrus :
> Well I successfully set up the Django server an d then connected to oit BUT
> I couldn't use that "syncdb" command to then set the pw and username in the
> admin.
>
> On Sun, Jul 3, 2016 at 11:15 PM, Mike Dewhirst 
> wrote:
>>
>> On 4/07/2016 1:06 PM, Steve Burrus wrote:
>>>
>>> Well I did tjhis okay "(stevesenv)
>>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but
>>> still the question persists where I go from here? I remember using
>>> "django-admin" before. How do I use that?
>>
>>
>> Here is a good place to start ...
>>
>> https://docs.djangoproject.com/en/1.9/
>>
>> That page covers how the documentation is organised. You need to work your
>> way through all the installation steps including database etc.
>>
>> Then the most important next step is to wrk through the tutorial. Once you
>> get that done there are quite a few third party tutorials on the web.
>>
>> Good luck
>>
>>
>> Mike
>>
>>
>>
>>
>>>
>>> On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst >> > wrote:
>>>
>>> On 4/07/2016 12:01 PM, Steve Burrus wrote:
>>>
>>> well I uyet again am encountering problems with installing the
>>> Django
>>> server. I managed to get to this point "(stevesenv)
>>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>"
>>>
>>>
>>> It looks as though you have successfully got virtualenv working.
>>>
>>> Therefore the short answer to your question is ...
>>>
>>> (stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install
>>> django
>>>
>>> Cheers
>>>
>>> Mike
>>>
>>>
>>> but where exactly do I go
>>>
>>> from here in installing django? Man y thanx to anyone who can
>>> help me
>>> with this "trying" problem of mine.Â
>>>
>>> --
>>> 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>>
>>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
>>>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>>
>>> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>>
>>> https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>>
>>> https://groups.google.com/d/msgid/django-users/CABcoaSDkTfc2QoxD_S3PqJCaTiigmp1msrvxDOq-pUK9Y9hD8Q%40mail.gmail.com
>>>
>>> 

Re: Installing Django Problem.

2016-07-04 Thread Steve R Burrus
Wel;l everyone I guess that I have met with success as far as connecting to  
the Django server a nd configuring the admin BUT there remains A LOT of things 
about Django I don't know yet.    

On Monday, July 4, 2016 2:31 PM, ludovic coues  wrote:
 

 I could ask you what error you get when running syncdb. I could tell
you to use manage.py createsuperuser.
But the best advice anyone can give you is to do a tutorial about
django. The django girls one is really great. The one from the
official documentation is shorter. Either one will give you a solid
base for starting to use django.

2016-07-04 16:19 GMT+02:00 Steve Burrus :
> Well I successfully set up the Django server an d then connected to oit BUT
> I couldn't use that "syncdb" command to then set the pw and username in the
> admin.
>
> On Sun, Jul 3, 2016 at 11:15 PM, Mike Dewhirst 
> wrote:
>>
>> On 4/07/2016 1:06 PM, Steve Burrus wrote:
>>>
>>> Well I did tjhis okay "(stevesenv)
>>> C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but
>>> still the question persists where I go from here? I remember using
>>> "django-admin" before. How do I use that?
>>
>>
>> Here is a good place to start ...
>>
>> https://docs.djangoproject.com/en/1.9/
>>
>> That page covers how the documentation is organised. You need to work your
>> way through all the installation steps including database etc.
>>
>> Then the most important next step is to wrk through the tutorial. Once you
>> get that done there are quite a few third party tutorials on the web.
>>
>> Good luck
>>
>>
>> Mike
>>
>>
>>
>>
>>>
>>> On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst >> > wrote:
>>>
>>>    On 4/07/2016 12:01 PM, Steve Burrus wrote:
>>>
>>>        well I uyet again am encountering problems with installing the
>>>        Django
>>>        server. I managed to get to this point "(stevesenv)
>>>        C:\Users\sbur87\Desktop\steves_dir\stevesenv>"
>>>
>>>
>>>    It looks as though you have successfully got virtualenv working.
>>>
>>>    Therefore the short answer to your question is ...
>>>
>>>    (stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install
>>>    django
>>>
>>>    Cheers
>>>
>>>    Mike
>>>
>>>
>>>    but where exactly do I go
>>>
>>>        from here in installing django? Man y thanx to anyone who can
>>>        help me
>>>        with this "trying" problem of mine.Â
>>>
>>>        --
>>>        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 https://groups.google.com/group/django-users.
>>>        To view this discussion on the web visit
>>>
>>> https://groups.google.com/d/msgid/django-users/e29b7fb8-ebda-4afc-890d-4048c4fe2e52%40googlegroups.com
>>>
>>> .
>>>        For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>    --
>>>    You received this message because you are subscribed to a topic in
>>>    the Google Groups "Django users" group.
>>>    To unsubscribe from this topic, visit
>>>
>>> https://groups.google.com/d/topic/django-users/9wVk4lDZcMY/unsubscribe.
>>>    To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
>>>    To view this discussion on the web visit
>>>
>>> https://groups.google.com/d/msgid/django-users/58cd5e27-6d4d-6929-aa44-b59c526a8c55%40dewhirst.com.au.
>>>
>>>    For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> 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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>>
>>> 

Re: oracle-django problem

2008-06-09 Thread Juan Hernandez
why does it have to be that big?? what would be the problem of renaming the
models??

On Tue, Jun 10, 2008 at 6:13 AM, Harish <[EMAIL PROTECTED]> wrote:

>
> hi friends
>
>  i have a django application, which works on postgres as back-end.
> now i want to migrate the application  back-end  from postgres to
> oracle.
>
> The problem i am facing is that, the existing data table names  in
> postgres is too long
> (basically  the table name is a combination of application name and
> class name), which is not allowed
> in oracle. (using oracle 11g) Basically oracle only allows 30
> character as table name.
>
> I am looking forward for any solution to my problem
>
>
> regards
> Harish Bhat
>
>
> >
>

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



Re: oracle-django problem

2008-06-09 Thread Karen Tracey
On Mon, Jun 9, 2008 at 6:43 AM, Harish <[EMAIL PROTECTED]> wrote:

>
> hi friends
>
>  i have a django application, which works on postgres as back-end.
> now i want to migrate the application  back-end  from postgres to
> oracle.
>
> The problem i am facing is that, the existing data table names  in
> postgres is too long
> (basically  the table name is a combination of application name and
> class name), which is not allowed
> in oracle. (using oracle 11g) Basically oracle only allows 30
> character as table name.
>
> I am looking forward for any solution to my problem
>

It isn't clear if you are actually encountering a problem or just
anticipating one.  I have no experience with Oracle, but it would seem that
the "naming issues" note here:

http://www.djangoproject.com/documentation/databases/#naming-issues

indicates that the developers of the Oracle support were aware of this issue
and dealt with it.  Are you running into a problem with this method of
handling the Oracle limitation?

Karen

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



Re: oracle-django problem

2008-06-09 Thread shabda

Or use this,
>From http://www.djangoproject.com/documentation/model-api/#table-names
"To override the database table name, use the db_table parameter in
class Meta."

On Jun 9, 7:46 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 9, 2008 at 6:43 AM, Harish <[EMAIL PROTECTED]> wrote:
>
> > hi friends
>
> >  i have a django application, which works on postgres as back-end.
> > now i want to migrate the application  back-end  from postgres to
> > oracle.
>
> > The problem i am facing is that, the existing data table names  in
> > postgres is too long
> > (basically  the table name is a combination of application name and
> > class name), which is not allowed
> > in oracle. (using oracle 11g) Basically oracle only allows 30
> > character as table name.
>
> > I am looking forward for any solution to my problem
>
> It isn't clear if you are actually encountering a problem or just
> anticipating one.  I have no experience with Oracle, but it would seem that
> the "naming issues" note here:
>
> http://www.djangoproject.com/documentation/databases/#naming-issues
>
> indicates that the developers of the Oracle support were aware of this issue
> and dealt with it.  Are you running into a problem with this method of
> handling the Oracle limitation?
>
> Karen
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Apache2/mod_python/Django problem

2007-05-04 Thread RollyF

Could someone point me to a solution somewhere? I have a directory
call apps and inside is a django project, todo (created using django-
admin.py startproject todo). This application runs OK with Django's
built-in server (manage.py runserver). I am trying to setup a staging
server in Fedora 6, running Apache 2.x and Python 2.4.4. When I run
the application I am getting the following error:

EnvironmentError: Could not import settings 'todo.settings' (Is it on
sys.path? Does it have syntax errors?): No module named
apps.todo.settings

Here's my setting in httpd.config


  SetHandler python-program
  PythonHandler django.core.handlers.modpython
  PythonPath "['/home/rxferoli/apps'] + sys.path"
  SetEnv DJANGO_SETTINGS_MODULE todo.settings
  PythonDebug On
  PythonInterpreter todo



What am I missing in the config?

TIA
Rolly


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



Re: Singleton + Django problem

2007-08-24 Thread James Bennett

On 8/24/07, Rodrigue <[EMAIL PROTECTED]> wrote:
> This works fine when I unittest it. But then, I create an instances of
> SomeClass in Django and...it does not work...and in the strangest way:
> the rest of the initialisation code is executed more than once, but
> not everytime.

When running under a real web server, there are almost always multiple
processes, each with its own copy of Django resident in memory (and,
hence, each with its own completely separate copy of your "singleton",
none of which know the others exist).


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

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



Mod_python and Django - PROBLEM

2006-06-09 Thread PythonistL

I am going to setup Django with mod_python and Apache on Linux but when
I try to use a script from a browser I will get the error:

##
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
461, in import_module

ImportError: No module named django
#

I can import django easily directly from Python shell.My setting is:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin:/home/django_src/django/bin
HOME=/root
PYTHONPATH=:/home/django_src:/home/django_projects
LOGNAME=root

When tested separately , mod_python works Ok too.

My httpd.conf looks like this


...


ServerName www.eim.com
SetHandler python-program
PythonPath "['/home/django_projects/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mimiproject.settings
PythonDebug On
SetEnv DJANGO_SETTINGS_MODULE mimiproject.settings
Alias /Media/ "/home/TEMPLATESMIMI/Static/"

  
SetHandler None
  

...
...

Or must I change setting of  User httpd  in httpd.conf ?
Thank you for reply
L.


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



django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
Hi,I am facing a weird issue with dream host, day before yesterday my django application stopped serving requests, I have not done anything, and its been working since about a month, and now it waits for minutes before give me 500 interneral server error. Also I get lots of core files in my domain folder. Has anyone seen something like this happening with their django application hosted on dreamhost? 
-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: macports and django problem

2008-10-12 Thread Jarek Zgoda

Wiadomość napisana w dniu 2008-10-12, o godz. 17:26, przez David  
Koppstein:

> I have updated my $PATH variable properly:
> /sw/bin:/sw/sbin:/macosx-bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ 
> local/bin:/usr/X11/bin:/usr/X11R6/bin:/Users/david/bin:/sw/bin:/sw/ 
> sbin:/Users/david/godi/bin:/Users/david/godi/sbin:/usr/local/ 
> smlnj-110.67/bin:/opt/local/bin:/opt/local/sbin
>
> Has anyone installed Django successfully using MacPorts? I really like
> the idea of MacPorts as a philosophy, especially since it's derived  
> from
> BSD, but it seems poorly integrated with the existing infrastructure.


I did this recently. And it works, but my path looks quite different:

jarek:~$ echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/ 
Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/ 
usr/local/bin:/usr/X11/bin
jarek:~$ python
Python 2.5.2 (r252:60911, Sep 28 2008, 15:23:45)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import django
 >>> django.__file__
'/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/django/__init__.pyc'
 >>>

What is worth noticing, the /opt/lcoal/bin path comes first on list.

-- 
We read Knuth so you don't have to. - Tim Peters

Jarek Zgoda, R&D, Redefine
[EMAIL PROTECTED]


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



Re: macports and django problem

2008-10-12 Thread David Koppstein

Thanks Jarek. I got it to work -- it is actually not the /opt/local/bin, 
but rather the 
/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin that 
has the "right" python. Thanks for your help!

I still don't like that there are multiple versions of Python on my 
computer, though :-(.

Does anyone know if the BSDs have this problem? I'm thinking of 
switching rather soon.

David

Jarek Zgoda wrote:
> Wiadomość napisana w dniu 2008-10-12, o godz. 17:26, przez David  
> Koppstein:
>
>   
>> I have updated my $PATH variable properly:
>> /sw/bin:/sw/sbin:/macosx-bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ 
>> local/bin:/usr/X11/bin:/usr/X11R6/bin:/Users/david/bin:/sw/bin:/sw/ 
>> sbin:/Users/david/godi/bin:/Users/david/godi/sbin:/usr/local/ 
>> smlnj-110.67/bin:/opt/local/bin:/opt/local/sbin
>>
>> Has anyone installed Django successfully using MacPorts? I really like
>> the idea of MacPorts as a philosophy, especially since it's derived  
>> from
>> BSD, but it seems poorly integrated with the existing infrastructure.
>> 
>
>
> I did this recently. And it works, but my path looks quite different:
>
> jarek:~$ echo $PATH
> /opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/ 
> Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/ 
> usr/local/bin:/usr/X11/bin
> jarek:~$ python
> Python 2.5.2 (r252:60911, Sep 28 2008, 15:23:45)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import django
>  >>> django.__file__
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/django/__init__.pyc'
>  >>>
>
> What is worth noticing, the /opt/lcoal/bin path comes first on list.
>
>   


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



django problem in creating server

2011-05-15 Thread MOHAK R
while creating a django server i am getting import receiver not
found...
i have followed all the installation process properly as mentioned in
documentation.
and my os is mac osx.

-- 
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 : Problem with forms

2014-09-29 Thread Collin Anderson
Very interesting. Your code looks correct. Did you restart uwsgi? Does 
clearing out your .pyc files fix it?

-- 
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/b4a5d5eb-851d-4d69-902e-fe7e4434be7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Apache2/mod_python/Django problem

2007-05-04 Thread Paul Rauch

RollyF schrieb:
> Could someone point me to a solution somewhere? I have a directory
> call apps and inside is a django project, todo (created using django-
> admin.py startproject todo). This application runs OK with Django's
> built-in server (manage.py runserver). I am trying to setup a staging
> server in Fedora 6, running Apache 2.x and Python 2.4.4. When I run
> the application I am getting the following error:
> 
> EnvironmentError: Could not import settings 'todo.settings' (Is it on
> sys.path? Does it have syntax errors?): No module named
> apps.todo.settings
> 
> Here's my setting in httpd.config
> 
> 
>   SetHandler python-program
>   PythonHandler django.core.handlers.modpython
>   PythonPath "['/home/rxferoli/apps'] + sys.path"
>   SetEnv DJANGO_SETTINGS_MODULE todo.settings
>   PythonDebug On
>   PythonInterpreter todo
> 
> 
> 
> What am I missing in the config?
> 
> TIA
> Rolly
> 
> 

is in the dir "/home/rxferoli/apps" the dir todo?
inside the dir todo should be the file settings.py

mfg Paul Rauch

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



Re: Apache2/mod_python/Django problem

2007-05-04 Thread oggie rob

Check Unix permissions for the todo directory and/or settings.py file.
If apache can't access them, it won't run properly.

 -rob

On May 4, 6:49 am, RollyF <[EMAIL PROTECTED]> wrote:
> Could someone point me to a solution somewhere? I have a directory
> call apps and inside is a django project, todo (created using django-
> admin.py startproject todo). This application runs OK with Django's
> built-in server (manage.py runserver). I am trying to setup a staging
> server in Fedora 6, running Apache 2.x and Python 2.4.4. When I run
> the application I am getting the following error:
>
> EnvironmentError: Could not import settings 'todo.settings' (Is it on
> sys.path? Does it have syntax errors?): No module named
> apps.todo.settings
>
> Here's my setting in httpd.config
>
> 
>   SetHandler python-program
>   PythonHandler django.core.handlers.modpython
>   PythonPath "['/home/rxferoli/apps'] + sys.path"
>   SetEnv DJANGO_SETTINGS_MODULE todo.settings
>   PythonDebug On
>   PythonInterpreter todo
> 
>
> What am I missing in the config?
>
> TIA
> Rolly


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



Re: Apache2/mod_python/Django problem

2007-05-07 Thread RollyF

rob,

Thanks. It's the permissions. It's running now.

-Rolly

On May 4, 3:32 pm, oggie rob <[EMAIL PROTECTED]> wrote:
> Check Unix permissions for the todo directory and/or settings.py file.
> If apache can't access them, it won't run properly.
>
>  -rob
>
> On May 4, 6:49 am, RollyF <[EMAIL PROTECTED]> wrote:
>
> > Could someone point me to a solution somewhere? I have a directory
> > call apps and inside is a django project, todo (created using django-
> > admin.py startproject todo). This application runs OK with Django's
> > built-in server (manage.py runserver). I am trying to setup a staging
> > server in Fedora 6, running Apache 2.x and Python 2.4.4. When I run
> > the application I am getting the following error:
>
> > EnvironmentError: Could not import settings 'todo.settings' (Is it on
> > sys.path? Does it have syntax errors?): No module named
> > apps.todo.settings
>
> > Here's my setting in httpd.config
>
> > 
> >   SetHandler python-program
> >   PythonHandler django.core.handlers.modpython
> >   PythonPath "['/home/rxferoli/apps'] + sys.path"
> >   SetEnv DJANGO_SETTINGS_MODULE todo.settings
> >   PythonDebug On
> >   PythonInterpreter todo
> > 
>
> > What am I missing in the config?
>
> > TIA
> > Rolly


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



Re: Mod_python and Django - PROBLEM

2006-06-09 Thread Michael Radziej

PythonistL wrote:

Fast guess:

> My httpd.conf looks like this
> 
> 
> ...
> 
> 
> ServerName www.eim.com
> SetHandler python-program
> PythonPath "['/home/django_projects/'] + sys.path"
  ^^ add '/home/django_src' to this.


Does it help?

Michael

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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL

Hello Michael,
thank you for help.It solved that problem.
But now it says

 File "/home/django_src/django/core/db/__init__.py", line 23, in ?
raise ImproperlyConfigured, "Could not load database backend: %s.
Is your DATABASE_ENGINE setting (currently, %r) spelled correctly?
Available options are: %s" % \

ImproperlyConfigured: Could not load database backend: No module named
_mysql. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled
correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql',
'sqlite3'


but from Python shell it works OK.
So, where can be a problem?
Thank you for help
L,


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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL

My settings.py looks like this:
# Django settings for mimiproject project.

DEBUG =True
TEMPLATE_DEBUG = DEBUG
SESSION_COOKIE_AGE=259200
ADMINS = (
# ('Your Name', '[EMAIL PROTECTED]'),
)

MANAGERS = ADMINS
SERVER_EMAIL='[EMAIL PROTECTED]'
DEFAULT_FROM_EMAIL='[EMAIL PROTECTED]'
EMAIL_HOST='localhost'
DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or
'ado_mssql'.
DATABASE_NAME = 'mimi'  # Or path to database file if using
sqlite3.
DATABASE_USER = 'emii'
DATABASE_PASSWORD = ''
DATABASE_HOST = 'localhost'

DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. All choices can be found here:
#
http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
#LANGUAGE_CODE = 'en-us'
#LANGUAGE_CODE = 'cs'
LANGUAGE_CODE = 'utf-8'
#ALTER DATABASE `db_name` DEFAULT CHARACTER SET utf8 COLLATE
utf8_general_ci
SITE_ID = 1

#MEDIA_ROOT = "/home/bmabma/TEMPLATESmimi/Static/" #Python Syntax
MEDIA_ROOT = "/Media/"  #viz alias v httpd.conf

# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com";
#MEDIA_URL = "http://localhost:8080/Media/";
MEDIA_URL = "/Media/"
# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = '[EMAIL PROTECTED]&kt3mj+p*#dv520qwex0rv'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
'django.core.template.loaders.filesystem.load_template_source',

'django.core.template.loaders.app_directories.load_template_source',
# 'django.core.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware",
"django.middleware.sessions.SessionMiddleware",
"django.middleware.doc.XViewMiddleware",
)

ROOT_URLCONF = 'mimiproject.urls'

TEMPLATE_DIRS = ('/home/TEMPLATESmimi')
INSTALLED_APPS = ('mimiproject.apps.mimi','django.contrib.admin',)


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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread Simon Willison


On 10 Jun 2006, at 10:02, PythonistL wrote:

> ImproperlyConfigured: Could not load database backend: No module named
> _mysql. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled
> correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql',
> 'sqlite3'
>
>
> but from Python shell it works OK.

Are you sure mod_python and the python shell you are running are  
using the same version of Python? It's possible that one of them is  
using Python 2.2 and the other Python 2.3 (for example), in which  
case they wouldn't be sharing the same site-packages directories.

Cheers,

Simon

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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL

Simon,
On Apache
I use
Apache/2.0.55 (Trustix Secure Linux/Linux)
mod_python/3.2.8
Python/2.3.5
PHP/5.0.5
mod_perl/2.0.0 Perl/v5.8.7

Do you think there can be a problem?
Thank you for help
regards,
L


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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread Malcolm Tredinnick

On Sat, 2006-06-10 at 03:35 -0700, PythonistL wrote:
> Simon,
> On Apache
> I use
> Apache/2.0.55 (Trustix Secure Linux/Linux)
> mod_python/3.2.8
> Python/2.3.5
> PHP/5.0.5
> mod_perl/2.0.0 Perl/v5.8.7

Since you are using mod_python 3.2.8, have you tried looking at the
output of the helper described on the troubleshooting page in the
mod_python documentation:
http://www.modpython.org/live/current/doc-html/inst-trouble.html

Temporarily replace you django.core.handlers.modpython Handler with
mod_python.testhandler and look at the result of retrieving your front
page. See if the python path is what you expect and if all the variables
that are set in the environment are what you expect. Read the output
very carefully, because you are looking for a subtle difference here,
apparently.

Regards,
Malcolm


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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL

Malcom.
Thank you for help.
I followed
http://www.modpython.org/live/current/doc-html/inst-trouble.html
so i added to my httpd.conf


  SetHandler mod_python
  PythonHandler mod_python.testhandler



but when I
point my  browser to the /mpinfo URL
I will get

Mod_python error: "PythonHandler mod_python.testhandler"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
287, in HandlerDispatch

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
461, in import_module

ImportError: No module named testhandler
##
but when I check the directory there is testhandler.py file .

Also when I test mod_python installation as described
at http://www.modpython.org/live/current/doc-html/inst-testing.html

 it seem to be OK and working

Any further idea where can be a problem?
Thank you
L.


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



Re: Mod_python and Django - PROBLEM

2006-06-10 Thread Malcolm Tredinnick

On Sat, 2006-06-10 at 04:35 -0700, PythonistL wrote:
> Malcom.
> Thank you for help.
> I followed
> http://www.modpython.org/live/current/doc-html/inst-trouble.html
> so i added to my httpd.conf
> 
> 
>   SetHandler mod_python
>   PythonHandler mod_python.testhandler
> 
> 
> 
> but when I
> point my  browser to the /mpinfo URL
> I will get
> 
> Mod_python error: "PythonHandler mod_python.testhandler"
> 
> Traceback (most recent call last):
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 461, in import_module
> 
> ImportError: No module named testhandler
> ##

So you are consistently getting ImportErrors for things run by
mod_python (compare this to the Django error you are seeing -- they are
basically the same). I would start checking things like whether the user
running Apache has read permissions for your site-packages directory and
so forth.

If that's not it, I have no idea, but you are now seeing a consistent
problem, so you should focus on trying to get the basic mod_python stuff
working and leave the Django parts out of it. If you can get
mod_python.testhandler to run, I suspect the other part will start to
work as well.

Regards,
Malcolm



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



Re: Mod_python and Django - PROBLEM

2006-06-12 Thread PythonistL

Malcom,
Thank you for the help.
You were right. Permissions were the problem
L.


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



Re: django problem at dreamhost

2006-02-19 Thread Eugene Lazutkin

Amit Upadhyay wrote:
> 
> I am facing a weird issue with dream host, day before yesterday my 
> django application stopped serving requests, I have not done anything, 
> and its been working since about a month, and now it waits for minutes 
> before give me 500 interneral server error. Also I get lots of core 
> files in my domain folder. Has anyone seen something like this happening 
> with their django application hosted on dreamhost?

Nope, never seen it. I suggest to verify .htaccess file and test fcgi 
without Django trying to reproduce the problem. If you didn't modify 
Django (like svn-up it), you may have some problems with disk space 
(unlikely) or database (unlikely too), but it makes sense to check it too.

Thanks,

Eugene


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



Re: django problem at dreamhost

2006-02-19 Thread Nathan Clayton
On Feb 19, 2006, at 1:07 PM, Amit Upadhyay wrote:Hi,I am facing a weird issue with dream host, day before yesterday my django application stopped serving requests, I have not done anything, and its been working since about a month, and now it waits for minutes before give me 500 interneral server error. Also I get lots of core files in my domain folder. Has anyone seen something like this happening with their django application hosted on dreamhost? I'd suggest that you make sure that you've followed the directions on the dreamhost wiki for Django (http://wiki.dreamhost.com/index.php/Django), and then check that you're not getting the same issue that some of the ROR guys have experienced (http://wiki.dreamhost.com/index.php/Ruby_on_Rails#QuickStart_Guide) - check out point 5.Nathan-- This is my haiku.It ends all my messages.It's not very good. 
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
On 2/20/06, Eugene Lazutkin <[EMAIL PROTECTED]> wrote:
Nope, never seen it. I suggest to verify .htaccess file and test fcgiwithout Django trying to reproduce the problem. If you didn't modifyDjango (like svn-up it), you may have some problems with disk space(unlikely) or database (unlikely too), but it makes sense to check it too.
The problem is it happens intermittently, only twice with me so far, that too for not more than an hour, in that one hour, whatever I do does not fixes it, while it will fix itself after a while. Its got fixed just now, and I got a core file.
Now my problem is I am serving some _javascript_ that is embedded in the head of tens of blogs and firefox(atleast) will not render anything till before it has either got a 404 for _javascript_s in head or have timed out. Two minute delay will kill my service if it stops my clients blog from loading. 
-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-19 Thread Jeremy Jones

On Mon, 20 Feb 2006 02:37:20 +0530
"Amit Upadhyay" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am facing a weird issue with dream host, day before yesterday my
> django application stopped serving requests, I have not done
> anything, and its been working since about a month, and now it waits
> for minutes before give me 500 interneral server error. Also I get
> lots of core files in my domain folder. Has anyone seen something
> like this happening with their django application hosted on dreamhost?
>

I've been seeing some weirdness with Dreamhost over the past couple of
days.  My site appears to be holding up, though.  Shell access is
painfully slow.  I have some core files in my domain directory as
well.  Stats from my checker show a slower response time than normal
with some of my highest response times happening in the past couple of
days and a bunch of errors - looks like the output from my checker view
is null.  Guess I'll have to trap HTTP headers as well.  Seems like
there is always some mention of Dreamhost on this list and the
TurboGears list - and it's usually not good.  I think each user has a
potential for a widely varying experience.

- jmj

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



Re: django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
On 2/20/06, Nathan Clayton <[EMAIL PROTECTED]> wrote:
I'd suggest that you make sure that you've followed the directions on the dreamhost wiki for Django (
http://wiki.dreamhost.com/index.php/Django), and then check that you're not getting the same issue that some of the ROR guys have experienced (
http://wiki.dreamhost.com/index.php/Ruby_on_Rails#QuickStart_Guide) - check out point 5.
Thanks! Point 5 sounds like what might be happening with me, do you know what will I have to change to do what they have suggested in ruby.
-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-19 Thread [EMAIL PROTECTED]

I have had this exact same experience.  I do not know what causes it to
happen or what makes it fix itself.  I thought the problem was related
to the new svn feature.  Have you started using that?

I have a few domains hosted at dreamhost (on different machines).  One
machine has had problems (squirm) while another machine has been fine.


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



Re: django problem at dreamhost

2006-02-19 Thread Amit Upadhyay
On 2/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have had this exact same experience.  I do not know what causes it tohappen or what makes it fix itself.  I thought the problem was relatedto the new svn feature.  Have you started using that?
I do not use the new svn feature, but I have used command line svn since before they started the new feature. 
I have a few domains hosted at dreamhost (on different machines).  Onemachine has had problems (squirm) while another machine has been fine.How do you get a new machine? Will I have to create a new account? 
-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-19 Thread Eugene Lazutkin

Amit Upadhyay wrote:
> 
> How do you get a new machine? Will I have to create a new account?

1) I think it is the right time to contact DreamHost's support: 
https://panel.dreamhost.com/index.cgi?tree=support.msg, and let them 
know about your problems.

2) W.r.t. RoR's #5. If you use flup or its derivatives, you may try 
asking Allan Saddi (the creator of flup) how to implement #5 suggestion. 
It should be possible.

Thanks,

Eugene


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



Re: django problem at dreamhost

2006-02-20 Thread Lachlan Cannon

I've been having 500 errors at Dreamhost too. The week before last I finished 
my 
site, had it up and running and everything was fine. Then checked it on the 
next 
Monday, and having not changed anything I was getting 
 this mess. Dreamhost say they haven't changed 
anything on the server... I've tried redownloading django fresh from svn and 
that hasn't cleared it up. Has anyone else had a problem like this?

Thanks.
-- 
Lach
Personal: http://illuminosity.net/
Business: http://taravar.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
-~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-20 Thread Amit Upadhyay
On 2/21/06, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
I've been having 500 errors at Dreamhost too. The week before last I finished mysite, had it up and running and everything was fine. Then checked it on the nextMonday, and having not changed anything I was getting
 this mess. Dreamhost say they haven't changedanything on the server... I've tried redownloading django fresh from svn andthat hasn't cleared it up. Has anyone else had a problem like this?
This is not what I was talking about tho, I get 500 error from apache, and page finishes loading after minutes. Looks like a problem in their apache/fcgi. Yours looks like a bug in django or your code. 
-- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-21 Thread Julio Nobrega

  It looks like something wrong with your code: appname =
'taravar.apps.pages', No module named apps...

On 2/20/06, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
>
> I've been having 500 errors at Dreamhost too. The week before last I finished 
> my
> site, had it up and running and everything was fine. Then checked it on the 
> next
> Monday, and having not changed anything I was getting
>  this mess. Dreamhost say they haven't changed
> anything on the server... I've tried redownloading django fresh from svn and
> that hasn't cleared it up. Has anyone else had a problem like this?
>
> Thanks.
> --
> Lach
> Personal: http://illuminosity.net/
> Business: http://taravar.com/
>
>
>
>
>
>


--
Julio Nobrega - http://www.inerciasensorial.com.br

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



Re: django problem at dreamhost

2006-02-23 Thread [EMAIL PROTECTED]

I had this problem recently.  I had built a small project to learn
Django in january, using the latest trunk source.  It worked fine, so
when I started a second project about 2 weeks ago, I used the same
structure with project/apps/myapp1 ...

But I got the same error: 'no module named apps'. I changed all sorts
of stuff, but then noticed that in the latest documentation, the apps
directory has gone.  So I put my apps directly in the project
directory, and it worked.

I've just moved onto the magic-removal branch, and it's the same, but
also the models directory seems to be gone as well :)  I had to put my
models into models.py in the app directory.  Didn't find this in the
docs, but found some mentions in group messages, and in the source.

Otherwise, the magic-removal move was painfree- just a lot of small
changes.

Derek


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



Re: django problem at dreamhost

2006-02-23 Thread [EMAIL PROTECTED]

should have said, I don't use Dreamhost, so this has nothing to do with
their setup.

I'm on rimuhosting.com, which is great.

Derek


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



Re: django problem at dreamhost

2006-02-24 Thread Spider

Derek, what Linux distribution are your running at rimuhosting.com? I'm
about to sign up with them myself. 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-24 Thread [EMAIL PROTECTED]

I'm on Debian, but that's because I have another couple of Debian
servers already.
It's very good, but the stable release won't have the latest versions
of newer software.

I use a stable release, then added other software manually, eg
lighttpd. That caused a few version conflicts with APT (the package
management in Debian) but they were easily fixed.

Rimu now offer Ubuntu, which is Debian based and supposed to be more
up-to-date, but I haven't used it.

Derek


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



Re: django problem at dreamhost

2006-02-24 Thread MC

I too have had issues with dreamhost concerning core files and
performance. Every week I'll find a build up of 4-5 core.* dumped
files. And most of the time my site gutata.com performs very slowly on
gower.dreamhost.com. Granted I'm using the cheapest package and perhaps
I have a slow implementation, but even for simpler apps where I'm just
doing get_list, such as whitenoise.gutata.org or its admin page, 7 out
of 10 times, it's very slow.

I get 500 server errors but almost never. Nevertheless, these issues
are unacceptable. I think I'll be switching to a new host soon.

Jeremy Jones wrote:
> On Mon, 20 Feb 2006 02:37:20 +0530
> "Amit Upadhyay" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I am facing a weird issue with dream host, day before yesterday my
> > django application stopped serving requests, I have not done
> > anything, and its been working since about a month, and now it waits
> > for minutes before give me 500 interneral server error. Also I get
> > lots of core files in my domain folder. Has anyone seen something
> > like this happening with their django application hosted on dreamhost?
> >
>
> I've been seeing some weirdness with Dreamhost over the past couple of
> days.  My site appears to be holding up, though.  Shell access is
> painfully slow.  I have some core files in my domain directory as
> well.  Stats from my checker show a slower response time than normal
> with some of my highest response times happening in the past couple of
> days and a bunch of errors - looks like the output from my checker view
> is null.  Guess I'll have to trap HTTP headers as well.  Seems like
> there is always some mention of Dreamhost on this list and the
> TurboGears list - and it's usually not good.  I think each user has a
> potential for a widely varying experience.
> 
> - jmj


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



Re: django problem at dreamhost

2006-02-25 Thread Bryant

I have what I think is a similar problem - first time posting here so
please, be gentle.

I followed the instructions on the Django on Dreamhost wiki and
correctly installed django. Everything seems to work fine... database
tables are as expected... then I try to access mydomain.com/admin or
mydomain.com/django.fcgi.

After trying for several minutes, I get a 500: the error says "comm
with (dynamic) server aborted" and "incomplete headers (0 bytes)
received from server." However, when I run the sample hello.fcgi to
verify that FastCGI is running, it works fine.

Is there something wrong with the latest Django WSGI handler (I
installed via svn) or is it something in my configuration that's
causing this (to me) inexplicable error? Is this a Dreamhost only
issue?

Bryant Cutler
bryantcutler.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
-~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-02-27 Thread Jeremy Jones

On Sat, 25 Feb 2006 15:32:42 -0800
"Bryant" <[EMAIL PROTECTED]> wrote:

> 
> I have what I think is a similar problem - first time posting here so
> please, be gentle.
> 
> I followed the instructions on the Django on Dreamhost wiki and
> correctly installed django. Everything seems to work fine... database
> tables are as expected... then I try to access mydomain.com/admin or
> mydomain.com/django.fcgi.
> 
> After trying for several minutes, I get a 500: the error says "comm
> with (dynamic) server aborted" and "incomplete headers (0 bytes)
> received from server." However, when I run the sample hello.fcgi to
> verify that FastCGI is running, it works fine.

Welcome to the fastcgi club.  This is one thing that just drives me
absolutely nuts about fastcgi.  I had the same problem with my
TurboGears app and I occasionally have the problem with Django.
Assuming everything really is setup right, just try killing all of your
fastcgi processes, wait 15 minutes, and try again.  It appears that
Dreamhost has something setup to not allow too many fastcgi processes
to spawn too quickly, so if you kill everything and wait a little bit,
you'll be starting with a clean slate.  I hope this works for you.

> 
> Is there something wrong with the latest Django WSGI handler (I
> installed via svn) or is it something in my configuration that's
> causing this (to me) inexplicable error? Is this a Dreamhost only
> issue?

It could possibly be your configuration.  I doubt it's Django
specifically.  I'm running 0.91 (not SVN).  It may or may not be
Dreamhost.  I suspect fastcgi, but that's just me and my male
intuition.  

- jmj

> 
> Bryant Cutler
> bryantcutler.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
-~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-03-19 Thread Jaanus

This "no module named apps" is driving me nuts. Anyone, please help. I
took the settings from my Windows laptop where it worked, and am trying
to install in a Linux host. Here's the dump of "sqlreset", so this
happens even before I ever get around to getting anything to run on the
server. The Django versions are the same (0.91 - also tried with SVN
trunk - getting the same) and I've double-and triple-checked all the
paths and settings.

[hostname]$ django-admin.py sqlreset appname
Traceback (most recent call last):
  File "/home/jaanus/django/django_src/django/bin/django-admin.py",
line 5, in ?
management.execute_from_command_line()
  File "/home/jaanus/django/django_src/django/core/management.py", line
903, in execute_from_command_line
translation.activate('en-us')
  File "/home/jaanus/django/django_src/django/utils/translation.py",
line 192, in activate
_active[currentThread()] = translation(language)
  File "/home/jaanus/django/django_src/django/utils/translation.py",
line 181, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/jaanus/django/django_src/django/utils/translation.py",
line 164, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
ImportError: No module named apps


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



Re: django problem at dreamhost

2006-03-19 Thread Jaanus

hmm.. and just as I wrote this, I noticed the Django demo page on that
Linux host says...

"Start your first app by running trmproject/manage.py startapp
[appname]."

After I did it, the new app showed up right in the project's directory,
without "apps". So in one host it is with "apps" and in another it's
not. What's the logic behind that? At least I got it to work for myself
but would be good to know...


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



Re: django problem at dreamhost

2006-03-19 Thread James Bennett

On 3/19/06, Jaanus <[EMAIL PROTECTED]> wrote:
> After I did it, the new app showed up right in the project's directory,
> without "apps". So in one host it is with "apps" and in another it's
> not. What's the logic behind that? At least I got it to work for myself
> but would be good to know...

This may be due to different versions of Django; the "apps" directory
is no longer automatically created (though you can create it
yourself); instead, apps live directly under the project: where with
older revisions of Django you'd get 'myproject.apps.myapp', now you
get 'myproject.myapp'.


--
"May the forces of evil become confused on the way to your house."
  -- George Carlin

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



Re: django problem at dreamhost

2006-03-19 Thread limodou

On 3/20/06, Jaanus <[EMAIL PROTECTED]> wrote:
>
> hmm.. and just as I wrote this, I noticed the Django demo page on that
> Linux host says...
>
> "Start your first app by running trmproject/manage.py startapp
> [appname]."
>
> After I did it, the new app showed up right in the project's directory,
> without "apps". So in one host it is with "apps" and in another it's
> not. What's the logic behind that? At least I got it to work for myself
> but would be good to know...
>

In a directory, if you run manage.py startapp appname

It'll setup a app named appname in current directory, but not apps
directory. So if you want to create a new app in apps directory, you
should go into apps directory, and run the django-admin.py. Or create
the app manually it easy.

cd apps
mkdir appname
cd appname
>__init__.py

that's ok. If you need models.py:

>models.py

if you need urls.py

>urls.py

if you need views.py

>views.py

>filename represents create a empty file, and you can copy code from
existed files to it.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

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



Re: django problem at dreamhost

2006-03-19 Thread Vladimir Tarasov

$ cd myapp
$ python manage.py sqlreset appname

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



Re: django problem at dreamhost

2006-03-20 Thread Jaanus

limodou wrote:
> It'll setup a app named appname in current directory, but not apps
> directory. So if you want to create a new app in apps directory, you
> should go into apps directory, and run the django-admin.py. Or create
> the app manually it easy.

I can understand this and this all makes sense. What doesn't make sense
though, is that if the app lives in the "apps" directory, Django tells
me "no module named apps" - although all the settings are correct and
it works in another host with the same settings.


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



Re: django problem at dreamhost

2006-03-20 Thread Adrian Holovaty

On 3/20/06, Jaanus <[EMAIL PROTECTED]> wrote:
> I can understand this and this all makes sense. What doesn't make sense
> though, is that if the app lives in the "apps" directory, Django tells
> me "no module named apps" - although all the settings are correct and
> it works in another host with the same settings.

Does the "apps" directory have an __init__.py file in it? Generally
that "no module named..." error signifies there's no __init__.py.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.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
-~--~~~~--~~--~--~---



Re: django problem at dreamhost

2006-03-20 Thread Jaanus

> Does the "apps" directory have an __init__.py file in it? Generally
> that "no module named..." error signifies there's no __init__.py.

ha! that may have been it. killed apps now so cant check, but this may
have been it. thanks for the pointer.


-- 
rgds,
Jaanus


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



Re: django problem in creating server

2011-05-15 Thread Shawn Milochik

On 05/15/2011 08:16 PM, MOHAK R wrote:

while creating a django server i am getting import receiver not
found...
i have followed all the installation process properly as mentioned in
documentation.
and my os is mac osx.


Traceback or it didn't happen. ;o)

--
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 problem with mysql and apache

2014-12-23 Thread th . granier
Hello
i have just installed Django on Ubuntu 14.04  and i'd like to know 

1  how to do a multilingual site?
2 how to do a forum or use one existent

3 during the installation i have this probleme about mysql



root@linux-pc:/home/siteweb# python3.4 manage.py migrate
Traceback (most recent call last):
  File 
"/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", 
line 14, in 
import MySQLdb as Database
ImportError: No module named 'MySQLdb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", 
line 385, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", 
line 354, in execute
django.setup()
  File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 
21, in setup
apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.4/dist-packages/django/apps/registry.py", 
line 108, in populate
app_config.import_models(all_models)
  File "/usr/local/lib/python3.4/dist-packages/django/apps/config.py", line 
202, in import_models
self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 2231, in _gcd_import
  File "", line 2214, in _find_and_load
  File "", line 2203, in 
_find_and_load_unlocked
  File "", line 1200, in _load_unlocked
  File "", line 1129, in _exec
  File "", line 1448, in exec_module
  File "", line 321, in 
_call_with_frames_removed
  File 
"/usr/local/lib/python3.4/dist-packages/django/contrib/auth/models.py", 
line 40, in 
class Permission(models.Model):
  File "/usr/local/lib/python3.4/dist-packages/django/db/models/base.py", 
line 124, in __new__
new_class.add_to_class('_meta', Options(meta, **kwargs))
  File "/usr/local/lib/python3.4/dist-packages/django/db/models/base.py", 
line 299, in add_to_class
value.contribute_to_class(cls, name)
  File 
"/usr/local/lib/python3.4/dist-packages/django/db/models/options.py", line 
166, in contribute_to_class
self.db_table = truncate_name(self.db_table, 
connection.ops.max_name_length())
  File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", line 
40, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/local/lib/python3.4/dist-packages/django/db/utils.py", line 
242, in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python3.4/dist-packages/django/db/utils.py", line 
108, in load_backend
return import_module('%s.base' % backend_name)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 2231, in _gcd_import
  File "", line 2214, in _find_and_load
  File "", line 2203, in 
_find_and_load_unlocked
  File "", line 1200, in _load_unlocked
  File "", line 1129, in _exec
  File "", line 1448, in exec_module
  File "", line 321, in 
_call_with_frames_removed
  File 
"/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", 
line 17, in 
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: 
No module named 'MySQLdb'




how can i repair this?


AND finally
4 i'd like ti use my apache server instead of the server provided by 
Django. I have made the modifications in the apacahe2.conf 
but now??

how use apache instead of the internat server od Django?


MANY THANKS

-- 
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/d81eeaea-fa8f-4711-acf1-bcf7bb8b529e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Postgresql duplicate keys and django problem

2006-10-17 Thread [EMAIL PROTECTED]

Few days ago I've started to get such errors in the Admin Panel when I
want to add something:
##
IntegrityError: ERROR:  duplicate key violates unique constraint
"rk_news3_pkey"

INSERT INTO "rk_news3"
("news_title","news_text","news_more","news_date","news_keywords")
VALUES ('testtitle','test text','','2006-10-17 12:10:00.106753','foo
bar')
###
It worked before and I can add things from the "user view" (forum
works). I use postgresql and django-SVN. I've reset the counters  (like
ALTER SEQUENCE rk_page1_id_seq RESTART 1;) but it still throw this
error.


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



Re: django problem with mysql and apache

2014-12-24 Thread Sandeep kaur
On Wed, Dec 24, 2014 at 6:54 AM,  wrote:
>
> 3 during the installation i have this probleme about mysql
>
>
>
> root@linux-pc:/home/siteweb# python3.4 manage.py migrate
> Traceback (most recent call last):
>   File
"/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py",
line 14, in 
> import MySQLdb as Database
> ImportError: No module named 'MySQLdb'

About this, try installing MySQLdb using this command:
apt-get install python-mysqldb

-- 
Sandeep Kaur
Blog: sandymadaan.wordpress.com
SCM: https://github.com/sandeepmadaan

-- 
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/CAF66xG3UEWJPvXFw44ih0LE%3DDLtOZfzyGpJOEbwBGF-4MKNxMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django problem with mysql and apache

2014-12-28 Thread Collin Anderson
Hi,

1. I don't do a lot of multilingual, but here's a start:
https://docs.djangoproject.com/en/dev/topics/i18n/
If you have _content_ that's in multiple languages, you generally will want 
separate urls, like https://example.com/en/some/page/

2. Not sure on the best forum software for django.

3. Like mentioned, run:
apt-get install python-mysqldb
or us the recommended mysqlclient
apt-get install mysql-dev
pip install mysqlclient

4. If you haven't already, check out the django's mod_wsgi docs:
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/

Collin

On Tuesday, December 23, 2014 7:24:16 PM UTC-6, th.gr...@free.fr wrote:
>
> Hello
> i have just installed Django on Ubuntu 14.04  and i'd like to know 
>
> 1  how to do a multilingual site?
> 2 how to do a forum or use one existent
>
> 3 during the installation i have this probleme about mysql
>
>
>
> root@linux-pc:/home/siteweb# python3.4 manage.py migrate
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", 
> line 14, in 
> import MySQLdb as Database
> ImportError: No module named 'MySQLdb'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", 
> line 385, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", 
> line 354, in execute
> django.setup()
>   File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 
> 21, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "/usr/local/lib/python3.4/dist-packages/django/apps/registry.py", 
> line 108, in populate
> app_config.import_models(all_models)
>   File "/usr/local/lib/python3.4/dist-packages/django/apps/config.py", 
> line 202, in import_models
> self.models_module = import_module(models_module_name)
>   File "/usr/lib/python3.4/importlib/__init__.py", line 109, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 2231, in _gcd_import
>   File "", line 2214, in _find_and_load
>   File "", line 2203, in 
> _find_and_load_unlocked
>   File "", line 1200, in _load_unlocked
>   File "", line 1129, in _exec
>   File "", line 1448, in exec_module
>   File "", line 321, in 
> _call_with_frames_removed
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/contrib/auth/models.py", 
> line 40, in 
> class Permission(models.Model):
>   File "/usr/local/lib/python3.4/dist-packages/django/db/models/base.py", 
> line 124, in __new__
> new_class.add_to_class('_meta', Options(meta, **kwargs))
>   File "/usr/local/lib/python3.4/dist-packages/django/db/models/base.py", 
> line 299, in add_to_class
> value.contribute_to_class(cls, name)
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/db/models/options.py", line 
> 166, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>   File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", 
> line 40, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File "/usr/local/lib/python3.4/dist-packages/django/db/utils.py", line 
> 242, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File "/usr/local/lib/python3.4/dist-packages/django/db/utils.py", line 
> 108, in load_backend
> return import_module('%s.base' % backend_name)
>   File "/usr/lib/python3.4/importlib/__init__.py", line 109, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 2231, in _gcd_import
>   File "", line 2214, in _find_and_load
>   File "", line 2203, in 
> _find_and_load_unlocked
>   File "", line 1200, in _load_unlocked
>   File "", line 1129, in _exec
>   File "", line 1448, in exec_module
>   File "", line 321, in 
> _call_with_frames_removed
>   File 
> "/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", 
> line 17, in 
> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: 
> No module named 'MySQLdb'
>
>
>
>
> how can i repair this?
>
>
> AND finally
> 4 i'd like ti use my apache server instead of the server provided by 
> Django. I have made the modifications in the apacahe2.conf 
> but now??
>
> how use apache instead of the internat server od Django?
>
>
> MANY THANKS
>

-- 
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/djang

Re: Postgresql duplicate keys and django problem

2006-10-26 Thread can.xiang

Denis, your suggestion fixed a similar problem bugging me hours.

I tried to migrate some (1,000s rows) tables from mysql to postgresql
with the build-in model functions, which is absolutely no problem.
While when I tried to add new data with manipulator.save(), it always
raise "integrity error" on the primary key.

It fixed the problem with the reset on _id_seq.  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Postgresql duplicate keys and django problem

2006-10-17 Thread Michael Radziej

[EMAIL PROTECTED] schrieb:
> Few days ago I've started to get such errors in the Admin Panel when I
> want to add something:
> ##
> IntegrityError: ERROR:  duplicate key violates unique constraint
> "rk_news3_pkey"
> 
> INSERT INTO "rk_news3"
> ("news_title","news_text","news_more","news_date","news_keywords")
> VALUES ('testtitle','test text','','2006-10-17 12:10:00.106753','foo
> bar')
> ###
> It worked before and I can add things from the "user view" (forum
> works). I use postgresql and django-SVN. I've reset the counters  (like
> ALTER SEQUENCE rk_page1_id_seq RESTART 1;) but it still throw this
> error.

We'd need to see your model. And, why did you restart the sequences?

Michael


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



Re: Postgresql duplicate keys and django problem

2006-10-17 Thread James Bennett

On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Few days ago I've started to get such errors in the Admin Panel when I
> want to add something:

I'm curious about why you reset the sequence, rather than using
setval() to push it up to a working value, but this just sounds like a
sequence that's gotten out of sync with the state of its associated
table. And without a lot more information about what's going on (how
many apps access the database, for example, and what they use to do
it), it'd be hard to track down how that happened.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

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



Re: Postgresql duplicate keys and django problem

2006-10-18 Thread [EMAIL PROTECTED]

Models look like this:

#

class News(models.Model):
news_title = models.CharField(maxlength=255, verbose_name='Tytul')
news_text = models.TextField(verbose_name='Tresc')
news_more = models.TextField(verbose_name='Rozszerzona Tresc',
blank=True, default='')
news_date = models.DateTimeField(auto_now_add = True, blank=True)
news_keywords = models.CharField(maxlength=255, verbose_name='Slowa
Kluczowe', db_index=True)
class Meta:
verbose_name = "Nowosc"
verbose_name_plural = "Nowosci"
db_table = 'rk_news' + str(settings.SITE_ID)
class Admin:
list_display = ('news_title', 'news_date')
list_filter = ['news_date']
search_fields = ['news_title', 'news_text']
date_hierarchy = 'news_date'
fields = (
(None, {
'fields': ('news_title', 'news_text', 'news_keywords')
}),
('Rozszerzona Tresc', {
'classes': 'collapse',
'fields' : ('news_more',)
}),)
def __str__(self):
return self.news_title

class Page(models.Model):
title = models.CharField(maxlength=255, verbose_name='Tytul')
slug = models.SlugField(maxlength=255, unique=True,
verbose_name='Odnosnik', prepopulate_from=['title'])
description = models.CharField(maxlength=255, verbose_name='Opis')
text = models.TextField(verbose_name='Tresc')
creation_date = models.DateTimeField(auto_now_add = True, blank=True)
modification_date = models.DateTimeField(auto_now = True, blank=True)
class Meta:
verbose_name = "Strona"
verbose_name_plural = "Strony"
db_table = 'rk_page' + str(settings.SITE_ID)
class Admin:
list_display = ('title', 'slug')
search_fields = ['title', 'text', 'description']
fields = (
(None, {
'fields': ('title', 'slug', 'description', 'text')
}),)
def get_absolute_url(self):
return '/w/p/' + self.slug + '/'
def __str__(self):
return self.slug
##
User views show the data and the Admin Panel is used for add/edit work.


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



Re: Postgresql duplicate keys and django problem

2006-10-18 Thread [EMAIL PROTECTED]

I've setval the counters to higher, free numbers and it looks like it
works  now :)


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



Re: Postgresql duplicate keys and django problem

2006-10-18 Thread Denis

This can be done using following command sequence:

manage.py sqlsequencereset  | psql 

It sets counters to the max value of serial field of every model in
your app.


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



not so Django problem. more like fastcgi problem

2011-10-23 Thread Alexandr Notchenko
I got a problem with my Django+fcgi+Nginx setup on VMware virtual
machine with “ubuntu server 11.04”

my

#urls.py

from django.conf.urls.defaults import patterns, include, url
from sitename.views import hello, my_homepage_view

urlpatterns = patterns('',
(r'^$', my_homepage_view),
(r'^hello/$', hello),
)

#views.py

from django.http import HttpResponse
import datetime

def my_homepage_view(request):
now = datetime.datetime.now()
html="It is now %s. Yep, ... This is my homepage. " % now
return HttpResponse(html)

def hello(request):
return HttpResponse("Hello World!")

---
when I run testserver

./manage.py runserver 192.168.169.155:8000

where  192.168.169.155 – is an adress of my virtual machine (when use
localhost same thing happens)

when I open  http://192.168.169.155:8000/ my “my_homepage_view” opens
and  http://192.168.169.155:8000/hello/ my “hello” page opens

but if I start fcgi

./manage.py runfcgi protocol=fcgi method=prefork daemonize=false
host=127.0.0.1 port=8881

and my nginx server configs looks like

#nginx.conf

server {
listen 80;
server_name servername;

charset utf-8;

access_log logs/access.log ;

client_max_body_size 300m;

location / {
fastcgi_pass 127.0.0.1:8881;
include fastcgi_params;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

# fastcgi_params

fastcgi_param   QUERY_STRING$query_string;
fastcgi_param   REQUEST_METHOD  $request_method;
fastcgi_param   CONTENT_TYPE$content_type;
fastcgi_param   CONTENT_LENGTH  $content_length;

fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param   SCRIPT_NAME $fastcgi_script_name;
fastcgi_param   REQUEST_URI $request_uri;
fastcgi_param   DOCUMENT_URI$document_uri;
fastcgi_param   DOCUMENT_ROOT   $document_root;
fastcgi_param   SERVER_PROTOCOL $server_protocol;

fastcgi_param   GATEWAY_INTERFACE   CGI/1.1;
fastcgi_param   SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param   REMOTE_ADDR $remote_addr;
fastcgi_param   REMOTE_PORT $remote_port;
fastcgi_param   SERVER_ADDR $server_addr;
fastcgi_param   SERVER_PORT $server_port;
fastcgi_param   SERVER_NAME $server_name;

fastcgi_param   REDIRECT_STATUS 200;
---
when I open  http://192.168.169.155/ my “my_homepage_view” opens
and  http://192.168.169.155/hello/ my “my_homepage_view” opens again.

I presume somewhere in my fcgi settings something redirects all
requests to site root
help me find it please
thank 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-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.



not really a django problem, just fishing here--

2007-12-11 Thread Jason Witherspoon

Hey everyone--

I've been trying to run Xapian alongside my Django app for lo, many  
moons now.

Here's the problem I run into:  Xapian is compiled to work w/a Python  
that's been configured for ucs4 support (this is a manner of handling  
unicode).  Won't work w/ucs2, far as I can tell.

When I try recompiling my Python to work w/Xapian, it breaks my  
psycopg2, which was compiled for ucs2 support.

Okay, no problem, I blitz every instance/egg of psycopg2 & install it  
fresh on top of my new ucs4-compliant Python.

Which lends some bizarre results-- in my best-case scenario (after  
several days of trial & error), I could get the psycopg2 module to  
load fine from IDLE, but it nonetheless still yielded non-stop  
"undefined symbol: PyUnicodeUCS4_[whatever]" errors when I tried to  
access my Django setup.

The only place I can find these PyUnicodeUCS[2/4] modules/whatevers  
(?) is in Jython, so I clean installed that for the heck of it.  No  
dice.

Anyone run across anything like this?  After some hairiness I've  
successfully returned to a working Python ucs2 configuration.  And  
I've asked on Xapian-discuss if a usc2-build exists, which would  
solve the problem nicely.  And wouldn't it be nice if Python just  
handled both ucs2 & ucs4, depending on what was required?  Yeah, I  
know, dream on

Any help much appreciated, and I actually know a lot more about this  
stuff than I'd prefer to now, so if this sounds comparable to a  
problem you've been having feel free to hit me backchannel & I can  
share what I know

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



Re: Facing an issue in running a Django problem

2021-03-24 Thread Kasper Laudrup
On 24/03/2021 10.39, Saravanan R wrote:
> 
> I have tried different methods to get rid of this error 
> But I was unable to do so

It would be nice if you could tell us what "this error" is instead of
sending very hard to read pictures with your phone. I'm not much of a
Windows user, but I'm fairly certain the possibility to copy and paste
text exists.

Of course, this just hints that you're not very experienced with using
computers in the first place which is fine of course, but maybe it would
be a good idea to learn some basics before diving into programming.

> I even reinstalled KERAS and TENSORFLOW to match the dependencies

What makes you think that would change anything? Assuming you are
installing the exact same software version, what makes you think
reinstalling it would change anything? Are you leaving out some relevant
details?

> Please HELP me to solve this

Trying to imagine being someone wanting to help you and then think about
the information you have provided. You don't really make it easy for
anyone to help you even if they wanted to.

Exactly what doesn't work and where's the code that fails?

Take the time to write a proper question bearing in mind that the read
might be experienced with Django and Python but has no idea what you are
doing and you are trying to achieve. That will most likely help you get
some help.

Kind regards,

Kasper Laudrup

-- 
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/e3b6f57e-cce2-4ed4-4997-2f64fc03c35b%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Facing an issue in running a Django problem

2021-03-24 Thread Prashanjeet Halder
I don't have much idea about tesorflow.

This is what i found on web :
https://www.codegrepper.com/code-examples/python/AttributeError%3A+module+%27tensorflow%27+has+no+attribute+%27get_default_session%27

See if that helps.
On Thursday, March 25, 2021 at 2:00:56 AM UTC+5:30 Kasper Laudrup wrote:

> On 24/03/2021 10.39, Saravanan R wrote:
> > 
> > I have tried different methods to get rid of this error 
> > But I was unable to do so
>
> It would be nice if you could tell us what "this error" is instead of
> sending very hard to read pictures with your phone. I'm not much of a
> Windows user, but I'm fairly certain the possibility to copy and paste
> text exists.
>
> Of course, this just hints that you're not very experienced with using
> computers in the first place which is fine of course, but maybe it would
> be a good idea to learn some basics before diving into programming.
>
> > I even reinstalled KERAS and TENSORFLOW to match the dependencies
>
> What makes you think that would change anything? Assuming you are
> installing the exact same software version, what makes you think
> reinstalling it would change anything? Are you leaving out some relevant
> details?
>
> > Please HELP me to solve this
>
> Trying to imagine being someone wanting to help you and then think about
> the information you have provided. You don't really make it easy for
> anyone to help you even if they wanted to.
>
> Exactly what doesn't work and where's the code that fails?
>
> Take the time to write a proper question bearing in mind that the read
> might be experienced with Django and Python but has no idea what you are
> doing and you are trying to achieve. That will most likely help you get
> some help.
>
> Kind regards,
>
> Kasper Laudrup
>
>

-- 
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/aeeb8502-bf83-42b3-bb2d-bf11bfd3cc24n%40googlegroups.com.


apache+mod_wsgi+django problem with objects which stay in memory

2008-12-12 Thread vytautas

[Fri Dec 12 13:27:07 2008] [error] Model read finished. Duration
1.2693259716
[Fri Dec 12 13:27:07 2008] [error] Model validity check skipped
[Fri Dec 12 13:27:09 2008] [error] Model read finished. Duration
1.23547005653
[Fri Dec 12 13:27:09 2008] [error] Model validity check skipped
[Fri Dec 12 13:27:18 2008] [error] Model read finished. Duration
1.28153181076
[Fri Dec 12 13:27:18 2008] [error] Model validity check skipped

here we have one object, every time that object is recreated, and here
is a reason why we lost a data.
program working with scheme of my program is samething like that:

step1->step2->step3->result

and in every step I update the data, and from this data I get the
info wich is necassary for  future, but when apache became the request
from server, then the object, in which I save data, are recreated and
my data is lost:/
my object is dictonarie.

my english is broken, sorry =]

Thanks for help!
Vytautas
--~--~-~--~~~---~--~~
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 problem with include of templates in block as variable

2009-02-04 Thread Dafidov

Hello
I have this kind of problem: In some child template I want to include
in {% block metatags %} other file depending of which link was clicked
on page.
In view I'm sending as code the name of this variable and when i
display it everything is ok - there is this data what I need under
this code, but here starts problem - I know that I have correct data
in this variable but when I tray to include file with this name
variable it doesn't work.
sample code
in main template I have
{% block test %}

{% endblock %}

in one of template I want to add this new data from file depending of
clicked link so I do:

{% extends "main.html" %}

{% block test %}
{% include code %}
{% endblock %}

But it doesn't work
Let's say that example cods are: prod-name1 prod-name2

I have in this file prod-name1 this:
{% block test %}


when I'm doing it like this:

{% block test %}
{% include 'prod-name1' %}
{% endblock %}

everything work's fine...

What is wrong - I think this is some kind of bug in django if it can't
load in include files named as variable.

Have anyone same problem like me ?

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



[View Django] Problem with view that makes add and update

2013-08-26 Thread Marcos Luiz Wilhelm
Hello!
I'm having problems with a view that makes add and update
The view generates a new record rather than change a instance.
My code is this: http://pastebin.com/rZNAeN0p
Someone can help me please?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: apache+mod_wsgi+django problem with objects which stay in memory

2008-12-12 Thread Graham Dumpleton



On Dec 13, 10:18 am, vytautas  wrote:
> [Fri Dec 12 13:27:07 2008] [error] Model read finished. Duration
> 1.2693259716
> [Fri Dec 12 13:27:07 2008] [error] Model validity check skipped
> [Fri Dec 12 13:27:09 2008] [error] Model read finished. Duration
> 1.23547005653
> [Fri Dec 12 13:27:09 2008] [error] Model validity check skipped
> [Fri Dec 12 13:27:18 2008] [error] Model read finished. Duration
> 1.28153181076
> [Fri Dec 12 13:27:18 2008] [error] Model validity check skipped
>
> here we have one object, every time that object is recreated, and here
> is a reason why we lost a data.
> program working with scheme of my program is samething like that:
>
> step1->step2->step3->result
>
> and in every step I update the data, and from this data I get the
> info wich is necassary for  future, but when apache became the request
> from server, then the object, in which I save data, are recreated and
> my data is lost:/
> my object is dictonarie.
>
> my english is broken, sorry =]

Which is why am not 100 percent what you mean.

Anyway, read:

  http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

Apache on UNIX is a multi process web server. If you are making
modifications to objects cached in memory in a request handler and
then expecting you to see changes for all subsequent requests, it will
not work, as subsequent requests could be against a different process.
Apache and/or mod_wsgi may also recycle processes depending on
configuration and so if you don't have an external persistence
mechanism such that data survives across process lifetime, also will
not work.

Graham
--~--~-~--~~~---~--~~
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 problem with include of templates in block as variable

2009-02-04 Thread Ales Zoulek

That should work.
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#include


Try this:

{% extends "main.html" %}

{% block test %}
CODE: {{code}} {% include code %}
{% endblock %}


Do you see the code value in the output?


On Wed, Feb 4, 2009 at 1:51 PM, Dafidov  wrote:
>
> Hello
> I have this kind of problem: In some child template I want to include
> in {% block metatags %} other file depending of which link was clicked
> on page.
> In view I'm sending as code the name of this variable and when i
> display it everything is ok - there is this data what I need under
> this code, but here starts problem - I know that I have correct data
> in this variable but when I tray to include file with this name
> variable it doesn't work.
> sample code
> in main template I have
> {% block test %}
>  some description " %}{% endblock %}" />
> {% endblock %}
>
> in one of template I want to add this new data from file depending of
> clicked link so I do:
>
> {% extends "main.html" %}
>
> {% block test %}
> {% include code %}
> {% endblock %}
>
> But it doesn't work
> Let's say that example cods are: prod-name1 prod-name2
>
> I have in this file prod-name1 this:
> {% block test %}
>  some other description " %}{% endblock %}" />
>
> when I'm doing it like this:
>
> {% block test %}
> {% include 'prod-name1' %}
> {% endblock %}
>
> everything work's fine...
>
> What is wrong - I think this is some kind of bug in django if it can't
> load in include files named as variable.
>
> Have anyone same problem like me ?
>
> Best regards
> >
>



-- 
--
Ales Zoulek
+420 604 332 515
Jabber: a...@jabber.cz
ICQ: 82647256
--

--~--~-~--~~~---~--~~
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: [View Django] Problem with view that makes add and update

2013-08-26 Thread C. Kirby
Have you verified that the url being called has a music_id?

On Monday, August 26, 2013 10:40:52 AM UTC-5, Marcos Luiz Wilhelm wrote:
>
> Hello!
> I'm having problems with a view that makes add and update
> The view generates a new record rather than change a instance.
> My code is this: http://pastebin.com/rZNAeN0p
> Someone can help me please?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [View Django] Problem with view that makes add and update

2013-08-30 Thread Marcos Luiz Wilhelm
Hello!
The problem that occurred was that the view when answering the case of 
modification, the id of the record was not passed when submitting the form. 
My solution was to add a block if / else to change the action of the form.
The following code: http://pastebin.com/BtPrpqSJ

I do not know if it is the best practice, but I think a simple solution.
Thanks C. Kirby.
Hug!

Em segunda-feira, 26 de agosto de 2013 12h40min52s UTC-3, Marcos Luiz 
Wilhelm escreveu:
>
> Hello!
> I'm having problems with a view that makes add and update
> The view generates a new record rather than change a instance.
> My code is this: http://pastebin.com/rZNAeN0p
> Someone can help me please?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.