2009-7-25
| 23:40 | elliotf | CShadowRun, ls -ald $DIRECTORY_NAME |
| 23:40 | Finder | ln -s will tell you |
| 23:40 | Finder | that too |
| 23:40 | Finder | erm, ls -l |
| 23:41 | aonweb | ln -s is for making symlnks |
| 23:41 | CShadowRun | -rwxrwxrwx 1 www-data www-data 258 2009-07-26 00:38 django.wsgi |
| 23:41 | Finder | yeah, sorry about that. :-/ |
| 23:41 | CShadowRun | hehe |
| 23:41 | elliotf | Finder, the problem with not having the 'd' is that it will show the contents of the directory, too. |
| 23:42 | CShadowRun | yup |
| 23:42 | Finder | I want the perms on the dir itself |
| 23:42 | elliotf | CShadowRun, it's a bad idea to have directories world-writable |
| 23:42 | Finder | so do it from /home/cshadowrun/django/mysite/ |
| 23:42 | CShadowRun | drwxr-xr-x 2 cshadowrun cshadowrun 4096 2009-07-26 00:38 apache |
| 23:42 | Finder | yeah, that's fine |
| 23:42 | CShadowRun | elliotf, i know, i'm just trying to make it work, then i'll make it secure |
| 23:42 | elliotf | CShadowRun, okay, just saying. :) |
| 23:42 | Finder | is wsgi even working? |
| 23:42 | Finder | by wsgi I mean mod_wsgi |
| 23:42 | CShadowRun | Finder, dunno, it was yesterday. How do i check? |
| 23:43 | Finder | I think it will tell you in the apache log |
| 23:43 | Finder | when you start apache |
| 23:43 | CShadowRun | when i go to my page in the forbidden message i get "Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_wsgi/2.3 Python/2.6.2 Server at 127.0.0.1 Port 80" |
| 23:43 | Finder | I don't have apache here so I can't check, sorry...#apache can tell you |
| 23:43 | CShadowRun | so i guess it's atleast loaded |
| 23:43 | Finder | Apache is, yeah...not sure about mod_wsgi |
| 23:44 | CShadowRun | the logs don't say much, just compiled, runtime using, python module path, resuming normal operations, access to / denied |
| 23:44 | Finder | did you try just bouncing apache if you can? |
| 23:44 | CShadowRun | don't know what that is |
| 23:45 | Finder | is this a shared host or are you running apache specifically for your site? |
| 23:45 | CShadowRun | Finder, i'm running it on my box at home to play about |
| 23:45 | Finder | sudo /etc/init.d/httpd restart |
| 23:45 | CShadowRun | yup, i've done that every time we've tried something new |
| 23:45 | CShadowRun | only it's apache2 not httpd |
| 23:46 | Finder | ok |
| 23:46 | Finder | I don't really know, I'm going to research a bit but you might ask in #apache too |
| 23:46 | aonweb | cshadowrun: you should probably read a bit more about apache first that will save a lot of time |
| 23:46 | Finder | since it's more a mod_wsgi and apache problem than a django related problem (since we know django.wsgi isn't being hit) |
| 23:46 | atob | CShadowRun: can you upload a copy of your virtual host somewhere? |
| 23:47 | CShadowRun | atob, virtual host? |
| 23:47 | skyl | is there a way to set display:none on my form fields ... I don't want to use exclude() b/c I want them to be there ... I'm trying to do this at the form level |
| 23:47 | CShadowRun | aonweb, maybe, but this sounds complicated since nobodys been able to solve it so far, and as i said it was working yesterday and i don't know of anything i did that could have stopped it from working :S |
| 23:48 | aonweb | sky1: using css you can do that |
| 23:48 | CShadowRun | but yea, i'll check out #apache and see if i can get any further with them, thanks :) |
| 23:48 | Finder | Sky1: you can also change the widget to a hidden widget |
| 23:48 | Finder | skyl: sorry, that was to you |
| 23:49 | aonweb | yep either way |
| 23:49 | aonweb | but i prefer controlling presentation using css |
| 23:49 | Finder | but if you're just wanting to change the display that won't work...or you can set attrs=(style={'display:none'}) on the widget |
| 23:49 | Finder | yep, that's best |
| 23:50 | skyl | right, but I have a lot of things to select ... yeah ... I could just add to css .. |
| 23:51 | Finder | I know I got the attrs wrong so you may want to look that up in widgets in the doc |
| 23:51 | unomystEz | is there a pre-save trigger or somewhere that I can calculate a value before saving (but only the first time it's being saved)? |
| 23:52 | Finder | unomystEz: overriding save is the easiest way imho |
| 23:52 | aonweb | there is a pre-save signal |
| 23:52 | unomystEz | how can I determine if it's the first time being saved? |
| 23:52 | unomystEz | ie, insert |
| 23:52 | aonweb | if you use get_or_create you will know if it existed or is new |
| 23:53 | Finder | is not hasattr(self, 'id') or not self.id: |
| 23:53 | Finder | it doesn't get assigned until after save is done |
| 23:53 | aonweb | cshadowrun: do you have access denied error? |
| 23:53 | Finder | s/is/if |
| 23:54 | CShadowRun | aonweb, yup, "You don't have permission to access / on this server." |
| 23:54 | aonweb | you should relook at your mappings in your conf file, as well as have a look at enabled and disabled sites |
| 23:55 | aonweb | besides your routing table config and port access |
| 23:55 | CShadowRun | heres my httpd.conf http://pastebin.com/m5b96c112 |
| 23:55 | CShadowRun | dunno what enabled and disabled sites is, sorry |
| 23:55 | CShadowRun | as for my routing table, i'm pretty sure theres nothing between me and 127.0.0.1 |
| 23:56 | aonweb | is that the only conf file used? there could be others as well |
| 23:56 | CShadowRun | nope, that's the entire httpd.conf and i don't know of any other config files |
| 23:57 | Finder | CShadowRun: how about your /etc/apache2/sites-enabled/000-default? |
| 23:57 | Navies | Has anyone here used Django South (for migrations), is it stable enough to actually use and depend on? |
| 23:58 | Navies | I like the idea since it's very similar to rails or even better :D |
| 23:58 | CShadowRun | Finder, http://pastebin.com/mfd993a4 |
| 23:59 | aonweb | CShadowRun: can we have errors from /var/log/apache2/error.log |
Page 17 of 17
← Previous
(1,675 total)