Re: Admin css being weird

2009-05-23 Thread simonecare...@gmail.com

Hi.

I've the same problem deploying a django application on my web hosting
with FastCGI.

I've tried also to entirely copy the media admin directory into my
public_html, but the only page I continue see looking good is the
LOGOUT page.

It seems that Django doesn't load properly the css. In the homepage it
loads only the dashboard.css, I think it has to load also the
base.css.

I'm googling a lot but still haven't find something useful.

If someone have got any idea I'll be very happy.

Simone.

On 30 Apr, 00:05, Cole  wrote:
> just to add, the images are actually working fine..
>
> On 29 Apr, 22:57, Cole  wrote:
>
> > Hi,
>
> > I've used Django a fair bit and have just installed it on a ubuntu-
> > based distro.  I've got everything working fine with apache2 and
> > mod_python but the admin css,
>
> > I have a soft link at /var/www/admin_media ponting to the admin media
> > folder and going to something like:
>
> >http://localhost/admin_media/img/admin/down_arrow.gif
>
> > shows the image fine in the browser - but the admin interface has no
> > css or images - except, weirdly on the logout page.
>
> > both the logout page and any other admin page have exactly the same
> > reference to the CSS:
>
> > login (not styled):
>
> > 
>
> > logout (styled fine):
> > 
>
> > I've deleted and redone the soft link a couple of times and tried
> > trailing slashes in the apache2.conf declarations (below for
> > reference) and it's made no difference.
>
> > Please help!
>
> > Cheers,
> > Cole
>
> >  APACHE SETTINGS
> > MaxRequestsPerChild 1
> > 
> >     SetHandler python-program
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE blog.settings
> >     PythonPath "['/home/cole/web-dev/django_projects'] + sys.path"
> > 
>
> > 
> >     SetHandler None
> > 
>
> > 
> >     SetHandler None
> > 
>
> > 
> >     SetHandler None
> > 

--~--~-~--~~~---~--~~
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: Admin css being weird

2009-05-24 Thread simonecare...@gmail.com

Yes I have 2 Django version installed.
But in the django.fcgi dispatcher I call the my Django Environment.
How can I fix this issue?

On 23 Mag, 20:49, Ariel Nunez  wrote:
> Please make sure there isn't another Django version being loaded.
> I experienced the same situation when I had copied admin media from one
> version and the Django module loaded had another one. (i.e. Django 1.0
> installed systemwide and Django 1.1 on a virtualenv)
>
> Regards,
>
> Ariel.
--~--~-~--~~~---~--~~
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: Admin css being weird

2009-05-24 Thread simonecare...@gmail.com

Yes I fixed this problem.
I didn't read your reply, but I did exactly what you suggest and then
update the media symbolic link to the correct django media admin.
Now all works fine.
Thanks a lot.
Simone.

On May 24, 8:03 pm, Ariel Nunez  wrote:
> On Sun, May 24, 2009 at 10:03 AM, simonecare...@gmail.com <
>
> simonecare...@gmail.com> wrote:
>
> > Yes I have 2 Django version installed.
> > But in the django.fcgi dispatcher I call the my Django Environment.
> > How can I fix this issue?
>
> I usually use it removing the 'other' version from my python path, usually
> by uninstalling it.
> If uninstalling the other one is not an option for you, try to find a way to
> clear your python path before loading your 'preferred' Django.
>
> Ariel.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Install PIL on a shared hosting

2009-06-07 Thread simonecare...@gmail.com

Hi to all.

I've noticed PIL is not installed on my shared hosting.

I tried to install it through setup.py but I got a permission error.

Has someone ever installed it on a shared hosting plan?

Thanks,
Simone.
--~--~-~--~~~---~--~~
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: Install PIL on a shared hosting

2009-06-07 Thread simonecare...@gmail.com

I'm on SITE5.

I've just created a symbolic link to PIL from my PYTHON PATH.

I can import PIL module, but now I get this error:

The _imaging C module is not installed

On Jun 7, 2:11 pm, Kenneth Gonsalves  wrote:
> On Sunday 07 June 2009 17:22:26 simonecare...@gmail.com wrote:
>
> > I've noticed PIL is not installed on my shared hosting.
>
> > I tried to install it through setup.py but I got a permission error.
>
> > Has someone ever installed it on a shared hosting plan?
>
> which shared hosting plan? If you are on a shared hosting plan that doesn't
> have PIL, you should think of shifting.
> --
> regards
> kghttp://lawgon.livejournal.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
-~--~~~~--~~--~--~---



django-friends error: 'Permission' object has no attribute 'verified'

2009-10-14 Thread simonecare...@gmail.com

Hi all,

I'm trying to install django-friends into my project, but I get an
error while performing syncdb:

File "/home/***/***/trunk/app/friends/models.py", line 208, in
new_user
if instance.verified():
AttributeError: 'Permission' object has no attribute 'verified'

I'm running on a Python2.5 Virtual Env, based on CentOS and Django
1.1.1

I've seen on django-friends github page, and noticed another person
got the same error, but there are no replies.

The Attribute Error is in the function:

def new_user(sender, instance, **kwargs):

in friends/model.py on line 208:

if instance.verified():

I'm struggling on how to fix it.
Any suggestion?

Thanks,
Simone.



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



Cannot create notification records in management.py

2009-10-15 Thread simonecare...@gmail.com

Hi,

I'm using django notification. I've installed django-messages, that
tries to add records for into the notification_noticetype table.

Here is the management.py

from django.db.models import get_models, signals
from django.conf import settings
from django.utils.translation import ugettext_noop as _

if "app.notification" in settings.INSTALLED_APPS:
from trunk.app.notification.models import models

def create_notice_types(app, created_models, verbosity, **kwargs):
notification.create_notice_type("messages_received", _
("Message Received"), _("you have received a message"), default=2)
notification.create_notice_type("messages_sent", _("Message
Sent"), _("you have sent a message"), default=1)
notification.create_notice_type("messages_replied", _("Message
Replied"), _("you have replied to a message"), default=1)
notification.create_notice_type("messages_reply_received", _
("Reply Received"), _("you have received a reply to a message"),
default=2)
notification.create_notice_type("messages_deleted", _("Message
Deleted"), _("you have deleted a message"), default=1)
notification.create_notice_type("messages_recovered", _
("Message Recovered"), _("you have undeleted a message"), default=1)

signals.post_syncdb.connect(create_notice_types,
sender=notification)

else:
print "Skipping creation of NoticeTypes as notification app not
found"


Django founds the notification app but it seems that this line

signals.post_syncdb.connect(create_notice_types, sender=notification)

doesn't get executed.

I googled but didn't found anything.
Has anyone ever encountered this issue?

I'm running on Python2.5 and Django 1.1.1

Thanks,
Simone.
--~--~-~--~~~---~--~~
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: Custom Comments

2009-10-19 Thread simonecare...@gmail.com

Post more information about errors you get, including you traceback.
It will be more helpful.

Bye.

On Oct 19, 4:34 pm, ToTmX  wrote:
> Hi, I'm new django user.
>
> I want use Comments application and custom the input form with only
> comment field in my form, without email field, site field, etc.
>
> I followed djangoproject.org guide for customing comments, but don't
> work :-(
>
> Please, help me.
> Thank's you and sorry for my english.
> S.C.
--~--~-~--~~~---~--~~
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-admin.py makemessages is ignoring .txt files

2010-04-16 Thread simonecare...@gmail.com
Hi all,

I'm noticing a strange problem with gettext makemessages command.

When I launch it to generate a .po file, it seems it completely
ignores i18n strings that are placed in .txt files.
Cannot see any way to get it referenced in the .po file.

All others strings are correctly pickled.

I'm running django 1.1.1 and using the command django-admin.py
makemessages --locale=pt_BR

Any suggestions?

-- 
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-admin.py makemessages is ignoring .txt files

2010-04-16 Thread simonecare...@gmail.com
Hey,

thank you for the quick and correct reply.

Simone.


On 16 Apr, 12:09, Tom Evans  wrote:
> On Fri, Apr 16, 2010 at 10:52 AM, simonecare...@gmail.com
>
>
>
>
>
>  wrote:
> > Hi all,
>
> > I'm noticing a strange problem with gettext makemessages command.
>
> > When I launch it to generate a .po file, it seems it completely
> > ignores i18n strings that are placed in .txt files.
> > Cannot see any way to get it referenced in the .po file.
>
> > All others strings are correctly pickled.
>
> > I'm running django 1.1.1 and using the command django-admin.py
> > makemessages --locale=pt_BR
>
> > Any suggestions?
>
> By default makemessages will only look at python files and html files,
> or js files when making the js catalog. You must tell it what files to
> search for translations, using the --extension (-e) flag to
> makemessages.
>
> See core/management/commands/makemessages.py for more details.
>
> Cheers
>
> Tom
>
> --
> 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 
> athttp://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.



Cannot reach development server in a rackspace cloud server

2010-01-04 Thread simonecare...@gmail.com
Hi everyone,

i've just setted up a new Centos 5.4 based cloud server at Rackspace.
Installed Python2.5 and virtualenv, devel-tools, and all went ok but I
can't reach the development server.

I started a new django project, then launched

python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
browser to that address.

Any ideas?

Also tried to disable SELinux, but nothing changed.

Thanks,
Simone.

--

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: Cannot reach development server in a rackspace cloud server

2010-01-04 Thread simonecare...@gmail.com
> python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> browser to that address.

Of course I mean MY.IP.ADDRESS:8000. :)



On Jan 4, 12:01 pm, "simonecare...@gmail.com"
 wrote:
> Hi everyone,
>
> i've just setted up a new Centos 5.4 based cloud server at Rackspace.
> Installed Python2.5 and virtualenv, devel-tools, and all went ok but I
> can't reach the development server.
>
> I started a new django project, then launched
>
> python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> browser to that address.
>
> Any ideas?
>
> Also tried to disable SELinux, but nothing changed.
>
> Thanks,
> Simone.

--

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: Cannot reach development server in a rackspace cloud server

2010-01-04 Thread simonecare...@gmail.com
Ehi Marc, thank you very much.

By doing a nmap scan I noticed the port 8000 is filtered.

so I tryed flushing iptables and it worked...now i've just to set up
again filtering over other ports.

Thank you again,
Simone.

On Jan 4, 12:27 pm, Marc Aymerich  wrote:
> On Mon, Jan 4, 2010 at 12:04 PM, simonecare...@gmail.com <
>
>
>
>
>
> simonecare...@gmail.com> wrote:
> > > python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> > > browser to that address.
>
> > Of course I mean MY.IP.ADDRESS:8000. :)
>
> > On Jan 4, 12:01 pm, "simonecare...@gmail.com"
> >  wrote:
> > > Hi everyone,
>
> > > i've just setted up a new Centos 5.4 based cloud server at Rackspace.
> > > Installed Python2.5 and virtualenv, devel-tools, and all went ok but I
> > > can't reach the development server.
>
> > > I started a new django project, then launched
>
> > > python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> > > browser to that address.
>
> > > Any ideas?
>
> take a look with: netstat -ltnp|grep python
> can you ping YOUR.IP.ADDRESS ??
> what say nmap YOU.IP.ADDRESS -p 8000 (client side) ?
> check your /etc/hosts (client side)
> check your /etc/hosts.deny (server and client side)
> maybe something with iptables: iptables -F
> in server side.. can you connect with: links2http://localhost:8000 ?
> Maybe Firewalls on the way?
>
>
>
> > > Also tried to disable SELinux, but nothing changed.
>
> > > Thanks,
> > > Simone.
>
> > --
>
> > 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 > groups.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.