2010-3-5
| 13:43 | ockham | hi, can someono give me a hint how to make pinax redirect to the previous page after login? |
| 13:43 | ockham | i found this, but i'm not sure it applies: http://code.google.com/p/django-hotclub/issues/... |
| 14:09 | ockham | anyone? |
| 20:32 | jraffucci | Hi, I was wondering how Pinax redirects user to the whats_next url when they are already logged in and request main page of the site |
| 20:33 | jraffucci | I guess the homepage. |
| 20:35 | jraffucci | is anyone active in the channel? |
| 20:37 | jtauber | the redirect to whats_next is different than the request to the mage page of the site |
| 20:37 | jtauber | s/mage/main/ |
| 20:37 | jtauber | although you could set the redirect on login to be the home page |
| 20:37 | jtauber | or set the home page to redirect to a whats_next page (or any other page) |
| 20:39 | jraffucci | right I understand, they reason I am asking is because If I am already logged in and request the site at the home page I am taken to the whats_next page |
| 20:39 | jraffucci | I was just wondering how that worked... |
| 20:39 | jtauber | what starter project did you use? |
| 20:40 | jraffucci | the social_project or the basic_project has this functionality |
| 20:40 | jraffucci | the reason I am asking is because you have a direct_to_template for the home page |
| 20:40 | jtauber | I don't think they redirect, I think they just both have some common content |
| 20:40 | brosner | i am confused. the homepage and what_next are two different URLs and pages. |
| 20:41 | jraffucci | right they are |
| 20:41 | jtauber | so not sure what your question is then |
| 20:41 | jraffucci | but when someone is logged in, it seems to go to the whats_next page, or is the homepage including the whats_next content as well? |
| 20:41 | jtauber | they just share content |
| 20:41 | jtauber | literally a copy-paste if I recall correctly |
| 20:41 | jraffucci | ah, so its not some redirect trick |
| 20:42 | jtauber | no |
| 20:42 | jraffucci | I guess you would have to build a view to move them |
| 20:42 | jtauber | although that *is* possible to do in Django |
| 20:42 | jraffucci | in a view? |
| 20:42 | jtauber | yes |
| 20:42 | jraffucci | ok |
| 20:42 | jraffucci | I for some reason thought you were redirecting in a middleware or something similar |
| 20:42 | jtauber | the view can return a HttpRedirectResponse |
| 20:43 | jtauber | or there is a redirect generic view too |
| 20:43 | jraffucci | correct, I was aware of that, it was just confusing me why I was getting the same page even after requesting the homepage |
| 20:43 | jtauber | note that we *do* redirect after login based on a setting |
| 20:43 | jraffucci | yes I saw that |
| 20:45 | jraffucci | and understood that part, directly after a login. But the same content was showing up in the homepage. Just wanted to get a grasp of how that was happening, not I get its just a copy of a content and probably a {% if request.user.is_authenticated %} in the template |
| 20:45 | jtauber | yep |
| 20:45 | jraffucci | thank you very much. |
| 20:45 | jtauber | np |
| 20:47 | jraffucci | I really like the reusable apps you guys have brought together |
| 20:48 | jraffucci | makes integration a pick and choose affair even if you don't want to use pinax in its entirety you can use the apps from their respective packages or repos |
| 20:48 | jraffucci | very well done, thank you for all the effort. |
| 20:48 | jtauber | in many cases the Pinax team wrote the apps too, not just brought them together :-) |
| 20:48 | jraffucci | Oh I know, thats why I am thanking you very much |
| 20:49 | jraffucci | I am very interested in getting to know how to use the groups functionality, would like to build a wall/news feed functionality for a client site and that seems to be the ticket along with notifications and friends |
| 20:51 | jraffucci | hopefully if you guys aren't already working towards a wall functionality I can build something in regards to that and contribute back. |
| 20:51 | pmatey | Hi, I just installed the dev version from github, and after cloning the social_project and trying to run |
| 20:51 | pmatey | 'python manage.py syncdb' I get this error: |
| 20:51 | pmatey | |
| 20:52 | jtauber | bonus points for using a pastebin :-) |
| 20:52 | brosner | pmatey: looks like the dependencies didn't install. |
| 20:53 | pmatey | is that why it is looking in /usr/lib/python2.5/...? |
| 20:53 | jraffucci | did you pip install -r requirements.txt? |
| 20:53 | pmatey | brosner: shouldn't it all be in the virtual-env or something? |
| 20:53 | brosner | actually are you in the virtual environment? |
| 20:53 | brosner | yes |
| 20:53 | pmatey | ok |
| 20:54 | jraffucci | i think you probably didn't install the requirements file. |
| 20:54 | jraffucci | you can type pip freeze to see what versions of the packages you have |
| 20:54 | brosner | it is more likely you are not in the virtual environment based on the path. |
| 20:54 | pmatey | I ran 'python scripts/pinax-boot.py --development --source=. ../pinax-dev' |
| 20:54 | brosner | then did you run source ../pinax-dev/bin/activate? |
| 20:55 | pmatey | sure did |
| 20:55 | brosner | then did you run pip install -r requirements/external_apps.txt? |
| 20:56 | brosner | make sure you sourced before running syncdb |
| 20:56 | pmatey | ah, that is where reading the docs helps |
| 20:56 | pmatey | sorry guys. let me give that a try |
| 21:00 | pmatey | On a semi-similar note, say I have a pinax site running and I do a pull from git and re-install my pinax-env, will my site that was built with an older version still work? |
| 21:05 | pmatey | Has anybody else noticed that blogs on a pinax deployed site don't seem to parse line breaks or reStructured Text? |
| 21:07 | pmatey | Regarding the blog markup failure, it seems someone has created a bug in the pinax task list a couple of months ago, so I guess I'll look into fixing that. |
| 21:08 | jtauber | we'll be replacing the blog app in the next few weeks |
| 21:08 | jtauber | once biblion can support multiple blogs on a site |
| 21:10 | pmatey | jtauber: Cool, biblion looks much better than the current blog app. |
| 21:10 | jtauber | it is :-) |
| 23:16 | pmatey | Using the latest dev version of pinax and I'm trying to update an old pinax site to run with it. Everything is going fine except I can't figure out why subnav tabs no longer don't work (with my old site). I know hundreds of things could be making this break, but if anybody has any suggestions, I would appreciate it. |