Re: Admin without template (no colors, no css, just simple html)
I made it!!! Robbington I'm So glad with you and I want to share how I made it. I have a bluehost, and after the pain that was to run django finally via FastCGI, I had a new problem: The media of the admin. I try with a symlink but it was kind of complicated for me, and don't understand exactly what I have to do and it failure. Now, reading Robbington, I try to copy the media directory from /home/ myuserDomain/.local/lib/python2.6/site-packages/django/contrib/admin/ to the public_html... yes, to the public_html, where also I have the FastCGI file, not to my project directory where I do my django- admin.py startproject. And Now is running perfectly! You know.. I think i would write a blog with all the adventure having django in the bluehost Thanks Rob!!! -- 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: Admin without template (no colors, no css, just simple html)
Well my friend, I have quickly looked into hosting a django project via blue host and this is what the django site has to say: Similar setup as Dreamhost. Django is listed as unsupported, but with some pain it does work, and has a good price.. http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts I use a vps, so I have never had to intergrate it with a 3rd party hosting system. ""But I have my django and my project in another patch, actually, out of www directory, but I have the fastcgi file right there, only that file."" Not sure what you mean by 'in another patch'? Dont worry about the location of fastcgi, it is responsible for letting apache serve you python code, if you can log into the admin site, then its working. If you think its responsible for not serving the static media, then I would suggest reading the full fastcgi documentation. I use a cherokee- uwsgi setup, so I cant really comment. "" So, Where is my project directory in my shared hosting "" The project directory is the one created when you run django-admin.py startproject. Where your settings.py file is located. Rob -- 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: Admin without template (no colors, no css, just simple html)
Thanks Robbington! Hey, Im watching that you mention "your project directory". But I have my django and my project in another patch, actually, out of www directory, but I have the fastcgi file right there, only that file. So, Where is my project directory in my shared hosting myuser/ home/.local/lib/python/myproject OR myuser/home/public_html ??? Thanks again! -- 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: Admin without template (no colors, no css, just simple html)
Personally I dont bother creating symlinks to my admin media, I just copy the media folder over to my project directory. Anyway: If you think that your settings.py is right: MEDIA_ROOT = '/var/www/django/project/media/' MEDIA_URL = 'media/' ADMIN_MEDIA_PREFIX = '/media/' or its a permissions problem (Not sure why it would be) you can check with ls -n and alter permissions with chmod. Here is a guide if your not sure (http://www.comptechdoc.org/os/linux/usersguide/ linux_ugfilesp.html) Or check out how to setup a fcgi django project from the main django site. http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs If you are a beginner, you might save yourself some trouble using mod_python to serve python instead of fastcgi, just my opinion. I use Cherokee anyways Hope that helped, Rob -- 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: Admin without template (no colors, no css, just simple html)
I have made somthing like: ln -s $HOME/.local/lib/python2.6/site-packages/django/contrib/admin/ media $HOME/.public_html/media And this create a folder with three folders more in my public_html (js, css, images) but it still don't working. also I do: ln -s $HOME/.local/lib/python2.6/site-packages/django/contrib/admin/ media $HOME/.local/lib/python2.6/site-packages/myproject and nothing. but if I go to: http://mydomain.com/media it tells me that I dont have permission, so that means that the folder has been created, and If i check the sorce code of the admin, and I click the link for the css (href="/media/css/base.css") I can`t because the permission, so I think this part is right. What I need to do? :S On Oct 26, 10:56 am, Giancarlo Razzoliniwrote: > So I did the right thing... nice! > > Giancarlo Razzolinihttp://lock.razzolini.adm.br > Linux User 172199 > Red Hat Certified Engineer no:804006389722501 > Verify:https://www.redhat.com/certification/rhce/current/ > Moleque Sem Conteudo Numero #002 > OpenBSD 4.5 > Ubuntu 9.04 Jaunty Jackalope > 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85 > > > > > > > > Daniel Roseman wrote: > > On Oct 26, 1:25 pm, Giancarlo Razzolini wrote: > > >> I had this same problem when hosting it with apache. I solved the > >> problem by creating a symbolic link inside my media folder pointing to > >> the admin site that is instaled with django. Something like this: > > >> admin -> /usr/share/pyshared/django/contrib/admin/media/ > > >> Of course, this would only work in unix environments. I've tried to > >> solve it by tweaking with the settings.py file, but couldn't find a > >> solution. The link did the trick. > > >> My regards, > > > There's no tweaking of settings.py that can somehow 'fix' this. > > Setting up Apache to serve the files is the only correct thing to do, > > whether that's by symlinking or whatever. > > -- > > DR. -- 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: Admin without template (no colors, no css, just simple html)
How can I create that symbolic link? :S __ On Oct 26, 7:07 am, Daniel Rosemanwrote: > On Oct 26, 1:25 pm, Giancarlo Razzolini wrote: > > > I had this same problem when hosting it with apache. I solved the > > problem by creating a symbolic link inside my media folder pointing to > > the admin site that is instaled with django. Something like this: > > > admin -> /usr/share/pyshared/django/contrib/admin/media/ > > > Of course, this would only work in unix environments. I've tried to > > solve it by tweaking with the settings.py file, but couldn't find a > > solution. The link did the trick. > > > My regards, > > There's no tweaking of settings.py that can somehow 'fix' this. > Setting up Apache to serve the files is the only correct thing to do, > whether that's by symlinking or whatever. > -- > DR. -- 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: Admin without template (no colors, no css, just simple html)
So I did the right thing... nice! Giancarlo Razzolini http://lock.razzolini.adm.br Linux User 172199 Red Hat Certified Engineer no:804006389722501 Verify:https://www.redhat.com/certification/rhce/current/ Moleque Sem Conteudo Numero #002 OpenBSD 4.5 Ubuntu 9.04 Jaunty Jackalope 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85 Daniel Roseman wrote: On Oct 26, 1:25 pm, Giancarlo Razzoliniwrote: I had this same problem when hosting it with apache. I solved the problem by creating a symbolic link inside my media folder pointing to the admin site that is instaled with django. Something like this: admin -> /usr/share/pyshared/django/contrib/admin/media/ Of course, this would only work in unix environments. I've tried to solve it by tweaking with the settings.py file, but couldn't find a solution. The link did the trick. My regards, There's no tweaking of settings.py that can somehow 'fix' this. Setting up Apache to serve the files is the only correct thing to do, whether that's by symlinking or whatever. -- DR. -- 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: Admin without template (no colors, no css, just simple html)
On Oct 26, 1:25 pm, Giancarlo Razzoliniwrote: > I had this same problem when hosting it with apache. I solved the > problem by creating a symbolic link inside my media folder pointing to > the admin site that is instaled with django. Something like this: > > admin -> /usr/share/pyshared/django/contrib/admin/media/ > > Of course, this would only work in unix environments. I've tried to > solve it by tweaking with the settings.py file, but couldn't find a > solution. The link did the trick. > > My regards, There's no tweaking of settings.py that can somehow 'fix' this. Setting up Apache to serve the files is the only correct thing to do, whether that's by symlinking or whatever. -- DR. -- 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: Admin without template (no colors, no css, just simple html)
I had this same problem when hosting it with apache. I solved the problem by creating a symbolic link inside my media folder pointing to the admin site that is instaled with django. Something like this: admin -> /usr/share/pyshared/django/contrib/admin/media/ Of course, this would only work in unix environments. I've tried to solve it by tweaking with the settings.py file, but couldn't find a solution. The link did the trick. My regards, Giancarlo Razzolini http://lock.razzolini.adm.br Linux User 172199 Red Hat Certified Engineer no:804006389722501 Verify:https://www.redhat.com/certification/rhce/current/ Moleque Sem Conteudo Numero #002 OpenBSD 4.5 Ubuntu 9.04 Jaunty Jackalope 4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85 rebus_ wrote: On 26 October 2010 06:48, marcoarreguinwrote: I'm starting with Django and I have a bluehost, yesterday I have been installing all the stuff, I found a tutorial about how to install django in bluehost, so I'm using fcgi. My problem is that when I uncomment the necesary things to run my admin, it runs, but it hasn't a layout like the images in the tutoriales, like the login box is centered and have a blue rectangle, I just have a little login in the left part of my screen without colors and that stuff, and when I login, it happens the same I can see my groups and all stuff but without format. ¿Do you know why is happen this to me? A hug, and I'm glad to be part of the community. -- 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. Check your ADMIN_MEDIA_PREFIX setting, the url it defines should serve static media content by a web server, yours is probably been handled by Django and thus not serving any static files (such as css) # 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 = '/admin-media/' -- 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: Admin without template (no colors, no css, just simple html)
On 26 October 2010 06:48, marcoarreguinwrote: > I'm starting with Django and I have a bluehost, yesterday I have been > installing all the stuff, I found a tutorial about how to install > django in bluehost, so I'm using fcgi. > > My problem is that when I uncomment the necesary things to run my > admin, it runs, but it hasn't a layout like the images in the > tutoriales, like the login box is centered and have a blue rectangle, > I just have a little login in the left part of my screen without > colors and that stuff, and when I login, it happens the same I can see > my groups and all stuff but without format. ¿Do you know why is happen > this to me? > > A hug, and I'm glad to be part of the community. > > -- > 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. > > Check your ADMIN_MEDIA_PREFIX setting, the url it defines should serve static media content by a web server, yours is probably been handled by Django and thus not serving any static files (such as css) # 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 = '/admin-media/' -- 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.
Admin without template (no colors, no css, just simple html)
I'm starting with Django and I have a bluehost, yesterday I have been installing all the stuff, I found a tutorial about how to install django in bluehost, so I'm using fcgi. My problem is that when I uncomment the necesary things to run my admin, it runs, but it hasn't a layout like the images in the tutoriales, like the login box is centered and have a blue rectangle, I just have a little login in the left part of my screen without colors and that stuff, and when I login, it happens the same I can see my groups and all stuff but without format. ¿Do you know why is happen this to me? A hug, and I'm glad to be part of the community. -- 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.