Simplesms

2011-11-18 Thread Nadae Ivar BADIO
Hi
I looking for a example of simplesms api.
Envoyé par mon BlackBerry® smartphone de Tigo

-- 
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: Postgres on OSX Lion

2011-09-26 Thread Nadae Ivar BADIO
Sudo for admin permissions
Envoyé par mon BlackBerry® smartphone de Tigo

-Original Message-
From: adrian 
Sender: django-users@googlegroups.com
Date: Mon, 26 Sep 2011 15:54:00 
To: Django users
Reply-To: django-users@googlegroups.com
Subject: Postgres on OSX Lion


Postgres comes pre-installed in OSX Lion for the first time (and mysql
is no longer present).  Yeah!
I installed psycopg2 using pip.

Then I kept getting the error message:

psycopg2.OperationalError: could not connect to server: Permission
denied
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

The simple solution is to change your settings file so that HOST =
'localhost'.   If it is set to '127.0.0.1'  or not specified you will
get the error above.
>From google searches it appears some people are having this issue with
MacPorts, Fink, and homebrew versions of Postgres as well, as of MacOS
10.7.1.

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

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



Chat

2011-06-16 Thread Nadae Ivar BADIO

Hi,

I am programing a chat with python django anyone have a example for me 
please.


--
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: Problem with static files (MEDIA_URL and MEDIA_ROOT)

2010-06-28 Thread nadae ivar badio
Hi do you speack french?

2010/6/27 Denis Ricardo 

> Hello people! I am having any problems with static files (images, CSS)
> in Django. I configured the MEDIA_URL and MEDIA_ROOT in settings.py
> and when I execute the server and I go see the webpage, the static
> files doesn't are encountered (the page stay without anything).
>
> Screen Shot of my page: http://yfrog.com/jq35546894
>
> I am using the Django 1.1, on Ubuntu 10.04. The following are the
> server logs:
>
> http://dpaste.com/211961/
>
> This files exists! They are in this directory, but doesn't are
> encountered by the Django.
> The directory of my project follows below:
>
> http://dpaste.com/211962/
>
> And these are the files of project:
>
> settings.py: http://dpaste.com/211967/
>
> urls.py: http://dpaste.com/211964/
>
> views.py: http://dpaste.com/211969/
>
> base.html: http://dpaste.com/211971/ # This is the page of the Screen
> Shot
>
> Anybody can help me?
>
> (Sorry by my bad english.)
>
> --
> 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.
>
>

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



Re: Static media in development server

2010-04-27 Thread Nadae Ivar Badio

Hi,

Use this FILE_UPLOAD_PERMISSIONS = 0600
and you have to give permissions to apache to read the file upload 
directory.





Jonathan Hayward wrote:
The file permissions are right AFAIK; the directory is mode 755 and 
the file 644, owned by the user running the server, so accessing and 
reading shouldn't be a problem.


Are you using Django installed through the package manager or the 
latest release from djangoproject.com ?


On Tue, Apr 27, 2010 at 6:37 PM, Xavier Ordoquy > wrote:


It is pretty much what I also have and works both on ubuntu 9.10
32 bits and osx.

Did you checked that your media directory exists and lives in the
same directory as the settings.py ?
Also check that you have the right permissions for accessing it
with the user that runs the dev server.

Regards,
Xavier.

Le 28 avr. 2010 à 01:00, Jonathan Hayward a écrit :


Thank you!

Right now, I have, in settings.py:

MEDIA_ROOT =
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'media')

MEDIA_URL = '/media/'

And at the end of urls.py:

if settings.DEBUG:
urlpatterns += patterns('django.views.static',
  (r'^%s(?P.*)$' % (settings.MEDIA_URL[1:],),  'serve', {
'document_root': settings.MEDIA_ROOT,
'show_indexes': True }),)

But I'm still getting a "not found" error when I try to load a
picture from the media directory. I am also getting "Permission
denied: /media/" when I load the root media URL.

I'm on an Ubuntu32 9.10 system, so even if I should be specifying
a virgule instead of os.path.join(), the path should be forward
slash separated. Is there anything that looks askew about the
code above?

On Tue, Apr 27, 2010 at 5:28 PM, Xavier Ordoquy
mailto:xordo...@linovia.com>> wrote:

Hi,

Here's something better for your dev server:

from django.conf import settings

if settings.DEBUG:
urlpatterns += patterns('django.views.static',
(r'^%s(?P.*)$' % (settings.MEDIA_URL[1:],),  'serve', {
  
 'document_root': settings.MEDIA_ROOT,
  
 'show_indexes': True }),)



To answer your question, you should
use os.path.abspath(os.path.dirname(__file__)) instead of
os.path.dirname(__file__).

Regards,
Xavier.


Le 28 avr. 2010 à 00:00, Jonathan Hayward a écrit :


I'm trying to serve up media from a document_root of
/media via, in urls.py:

urlpatterns = patterns('',
...
(r'^media/(?P.*)$', 'django.views.static.serve',
  {'document_root':
os.path.join(os.path.dirname(__file__), 'media')}),
...

It gives a "file not found" error, either this way or if I
add a trailing slash.

How can I serve up static content from /media/* to a URL of /media/* from the development server?

-- 
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com


→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading
online:
☩ I invite you to visit my main site at
http://JonathansCorner.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
django-users+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.



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




-- 
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com


→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main site at http://JonathansCorner.com/

-- 
You received this message because you are subscribed to the

Google Groups "Django users" group.
To post to this gr

Re: Deployment with Apache. Help !

2010-04-07 Thread Nadae Ivar Badio

hi Pep:

Do you give permissions to apache to acces to your css directory?



Pep wrote:

Hi everybody !

I didn't find the answer. I deployed my django project on a webserver
with apache. First, I started with Debug =  True and the website
worked fine.

So, I decided to do it with Debug = False. I could see my project but
not my CSS and other medias.

In the httpd.conf I just put the ServerName. I just configured the
file mysite in /etc/apache/sites-available/ with some Alias for the
media.

Here my virtualhost :
  1 
  2   ServerAdmin i...@domain.com
  3   ServerName  92.XXX.XX.XXX
  4   ServerAlias *.domain.com
  5   DocumentRoot /path/to/myproject
  6   
  7 SetHandler python-program
  8 PythonHandler django.core.handlers.modpython
  9 PythonPath "['/path/to/'] + sys.path"
 10 SetEnv DJANGO_SETTINGS_MODULE myproject.settings
 11 PythonDebug Off
 12   
 13
 14   Alias /web /path/to/myproject/web
 15   
 16 SetHandler None
 17   
 18 


Thanks for your help

PEP
  



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



Re: Django tutorial: TemplateDoesNotExist at /admin/

2010-01-03 Thread nadae ivar badio
you are using wish version of python?

2010/1/3 nameless 

> I have installed python and then django with setup.py install.
> I have only one installation. What do I do ?
>
> please help :-\
>
>
>
>
> ---
> On Jan 3, 3:02 pm, Ramiro Morales  wrote:
> > On Sun, Jan 3, 2010 at 10:52 AM, nameless  wrote:
> > > I am using tutorial on django official documentation. But when I point
> > > tohttp://127.0.0.1:8000/admin/, I get this error:
> >
> > > TemplateDoesNotExist at /admin/
> >
> > > admin/login.html
> >
> > > Request Method: GET
> > > Request URL:http://127.0.0.1:8000/admin/
> > > Exception Type: TemplateDoesNotExist
> > > Exception Value:
> >
> > > admin/login.html
> >
> > > Exception Location: /usr/local/lib/python2.6/dist-packages/django/
> > > [...]
> > > Python Path:['/home/nameless/Django-1.1.1/social', '/usr/lib/
> >
> > > I am using Ubuntu 9.10 please help :-\
> >
> > How have you installed Django?. Using a Ubuntu package (python-django)
> > or did you perform an installation from source? Make sure you don't have
> > more than one and possible incomplete installations.
> >
> > --
> > Ramiro Morales  |  http://rmorales.net
>
> --
>
> 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.
>
>
>

--

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.




Re: psycopg2 and "idle in transaction" messages

2009-12-10 Thread Nadae Ivar BADIO
Hi Alexander,

I wanna to ask you how do you configure django debian postgres apache and 
psycopg2
i try it but i could not have i wanan to run it on apache with svn .
Thanks

- Mail Original -
De: "Alexander Dutton" 
À: django-users@googlegroups.com
Envoyé: Jeudi 10 Décembre 2009 12h41:41 Monrovia (GMT)
Objet: psycopg2 and "idle in transaction" messages

Hi all,

As of last Thursday we've been seeing ~100% CPU usage from Apache, which
we believe was caused by Debian Bug #528529[0], whereby psycopg2 was
attempting to double free pointers, resulting in segfaults. This was
then (we think) leaving database connections open, resulting in postgres
saying "no more connections, TYVM" and the whole site 500ing. Not good.

On Monday we worked out what was happening and pulled psycopg2 2.0.12
from PyPI, as the bugfix hasn't been backported to Debian Lenny.
Everything seemed happy, but now we're seeing similar symptoms again and
were wondering if anyone else could help.

Versionwise, we have:
 * Django 1.1
 * Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26) [GCC 4.3.2]
 * Debian Lenny
 * psycopg2 2.0.12-py2.5-linux-i686
 * postgresql 8.3.8

Here're the outputs of a few things that might be useful:
 * SELECT * FROM pg_stat_activity: http://dpaste.com/131597/
 * SELECT * FROM pg_locks: http://dpaste.com/131598/
 * The top of 'top':   http://dpaste.com/131599/
 * A bit of 'ps -Af':  http://dpaste.com/131600/
 * A screenshot of our CPU usage:  http://users.ox.ac.uk/~kebl2765/cpu.png
 * A screenshot of our load avg:   http://users.ox.ac.uk/~kebl2765/load.png

The short drops in CPU utilisation were due to apache/postgres/system
restarts, and periods of high system CPU usage were generally when it
was 500ing.

The first time round we had tracebacks and memory dumps in our
/var/log/apache2/error.log; now there's nothing useful.

Any help would be greatly appreciated!

Warm regards,

Alex

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528529

--

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.


--

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.




[no subject]

2009-11-27 Thread Nadae Ivar BADIO
Morning 
I'm novice in django and i want to install my apllication on my server 
production whos on ubuntu i mean install my aplli on apache and i have this 
error:
MOD_PYTHON ERROR

ProcessId:  3230
Interpreter:'127.0.1.1'

ServerName: '127.0.1.1'
DocumentRoot:   '/var/www'

URI:'/mysite'
Location:   '/mysite'
Directory:  None
Filename:   '/var/www/mysite'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in 
HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in 
_process_target
result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in 
_execute_target
result = object(arg)

  File "/var/lib/python-support/python2.6/django/core/handlers/modpython.py", 
line 228, in handler
return ModPythonHandler()(req)

  File "/var/lib/python-support/python2.6/django/core/handlers/modpython.py", 
line 191, in __call__
self.load_middleware()

  File "/var/lib/python-support/python2.6/django/core/handlers/base.py", line 
31, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:

  File "/var/lib/python-support/python2.6/django/conf/__init__.py", line 28, in 
__getattr__
self._import_settings()

  File "/var/lib/python-support/python2.6/django/conf/__init__.py", line 59, in 
_import_settings
self._target = Settings(settings_module)

  File "/var/lib/python-support/python2.6/django/conf/__init__.py", line 94, in 
__init__
raise ImportError, "Could not import settings '%s' (Is it on sys.path? Does 
it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)

ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? 
Does it have syntax errors?): No module named mysite.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-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.




Install django on apache

2009-11-25 Thread Nadae Ivar BADIO
Hi,
i'm new in django and i trying to run django on my production server who have 
debian and apache someone can please help me?
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-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.