how to deploy Django on the web server?

2009-08-07 Thread justin jools
This has been driving me nuts for a month. I wanted to use a free web server to do development testing and have found : 000webhost.com and heliohost.com which apparently support Python, but what about Django? Do I install that myself? I have read the django book on deployment chapter but find it

Re: how to deploy Django on the web server?

2009-08-07 Thread justin jools
7, 12:06 pm, justin jools wrote: > > This has been driving me nuts for a month. > > > > I wanted to use a free web server to do development testing and have > > found : 000webhost.com and heliohost.com which apparently support > > Python, but what about Django? Do I in

Re: how to deploy Django on the web server?

2009-08-08 Thread justin jools
:25 PM, Milan Andric wrote: > > > Justin, it's not. Have you seen the deployment docs? > > > http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index > > -- > Milan > > On Aug 7, 1:56 pm, justin jools wrote: > > thanks for the reply

Re: how to deploy Django on the web server?

2009-08-08 Thread justin jools
would be great. I guess the first thing i need to do is bug the administrator to get a Python test script running. On Fri, Aug 7, 2009 at 10:45 PM, Daniel Roseman wrote: > > On Aug 7, 9:56 pm, justin jools wrote: > > thanks for the reply but I have access to a server for free so I wa

Re: how to deploy Django on the web server?

2009-08-09 Thread justin jools
rk pretty easily by just dropping the django > directory directly into my project directory. > > On Aug 8, 8:24 am, justin jools wrote: > > ok well thanks for your reply: > > > > first I have free access and they have told me python is installed but > it's >

newbies Deployment docs

2009-08-09 Thread justin jools
I hope this helps anyone starting, cos i learnt this the hard way! --- get your python path working: (scroll down to environment variables) http://www.voidspace.org.uk/python/articles/command_line.shtml#path --- d

Apache mod_wsgi Django setup - Forbidden You don't have permission to access /mysite on this server.

2009-08-11 Thread justin jools
Ive been the install instructions in : http://wiki.thinkhole.org/howto:django_on_windows%E2%80%8F (with mod_wsgi) install python 26, Apache 2.2, modwsgi ap2.2 py26 and apache loads modwsgi fine. when I check localhost: apache says - It works! when I check 127.0.0.1:8000: Django says - It worke

Google app engine patch translation : model_set.all doesnt work

2009-08-19 Thread justin jools
It seems google app engine patch doesnt support _set.all. I have tried my original django only version and it works but with google app engine patch does not. my template code: {% for model in object.product_model_set.all %} {{ model.full_title }} {% endfor %} I dont how / what to replac

generic view list_detail: how do I pass id to another list? newbie help please!

2009-08-20 Thread justin jools
generic view list_detail: how do I pass id to another list? (I'm using google app engine patch) Ive defined my first view as follows: def list_make(request): return object_list(request, Product_Make.all()) which works fine, now I want to pass the id selection to another list on a different

Why can't I pass id/key to an object_list? please help

2009-08-21 Thread justin jools
I'm trying to pass id/key from one list then filter the next. If I try: def show_make(request, key): return object_list(request, Product_Model.all(), key) I get: invalid literal for float(): agphZXAtc2FtcGxlchgLEhJteWFwcF9wcm9kdWN0X21ha2UYAQw N.B. the key is from google app but works the s

newbie help: how to list, list, detail

2009-08-22 Thread justin jools
how can I show a list then pass the id to next list lookup then detail? basically I'm writing a car product database with make, type and model tables: so first list is Audi, BMW, Ford... the next list is e.g. Audi models: T100, Quattro, then last selection is detail. I used this view model and

Re: newbie help: how to list, list, detail

2009-08-22 Thread justin jools
Roseman wrote: > On Aug 22, 6:08 pm, justin jools wrote: > > > > > how can I show a list then pass the id to next list lookup then > > detail? > > > basically I'm writing a car product database with make, type and model > > tables: > > > so fir

Can anyone give a method/example for doing drill down category queries: list, list, list detail

2009-08-22 Thread justin jools
Can anyone give a method/example for doing drill down category queries: list, list, list detail I'm writing car database. With make, type, model as seperate tables. model containing all the details. essentially 1st choice could be: make: Audi, BMW, Ford 2nd BMW: 200 series, 300 series... 3rd Det

Re: Django vs Joomla

2010-06-15 Thread justin jools
The previous author is right Django is a framework to build systems and not an already built system like a Content Management System, like Joomla. If you do want a comparison you have to compare a Django built CMS like : http://www.django-cms.org/. I don't know the reasons for your comparison but

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread justin jools
The previous author is right Django is a framework to build systems and not an already built system like a Content Management System, like Joomla. If you do want a comparison you have to compare a Django built CMS like : http://www.django-cms.org/. I don't know the reasons for your comparison but

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread justin jools
The previous author is right Django is a framework to build systems and not an already built system like a Content Management System, like Joomla. If you do want a comparison you have to compare a Django built CMS like : http://www.django-cms.org/. I don't know the reasons for your comparison but

context porcessors request.context media_url breaks admin

2010-06-28 Thread justin jools
I am trying to use media_url with generic views: When I set context processors to media_url, with generic views it breaks Admin: Caught an exception while rendering: user settings.py TEMPLATE_CONTEXT_PROCESSORS = ('portfolio.context_processors.media_url',) context_processors.py def media_url(req

Re: context porcessors request.context media_url breaks admin

2010-06-29 Thread justin jools
Yes I did accidentally set my ADMIN_MEDIA_PREFIX = '/site-media/' instead of media I'll try this On Jun 29, 8:57 am, bruno desthuilliers wrote: > On 29 juin, 00:44, justin jools wrote: > > > > > > > I am trying to use media_url with generic view

Django Tagging: no module named tagging, locally win7

2010-06-29 Thread justin jools
I've installed Django Tagging SVN checkout, 0.3.1 zip, 0.3 exe and 0.2.1 versions and I keep getting 'no module named tagging' when I try to run python manage.py syncdb. I've checked my Python path and added extra links: C:\Python26\Lib\site-packages\tagging; C:\Python26\Lib\site-packages; C:\Pyth

Re: context porcessors request.context media_url breaks admin

2010-06-29 Thread justin jools
I corrected my settings.py links: TEMPLATE_DIRS = 'C:/django/portfolio_root/templates/' MEDIA_ROOT = 'C:/django/portfolio_root/site-media/' MEDIA_URL = '/site-media/' ADMIN_MEDIA_PREFIX = '/media/' but I still get this error: TemplateSyntaxError at /admin/ Caught an exception while rendering: us

Re: Django Tagging: no module named tagging, locally win7

2010-06-29 Thread justin jools
n S wrote: > On Tue, Jun 29, 2010 at 4:35 PM, justin jools wrote: > > I've installed Django Tagging SVN checkout, 0.3.1 zip, 0.3 exe and > > 0.2.1 versions > > and I keep getting 'no module named tagging' when I try to run python > > manage.py syncdb. >

Re: Django Tagging: no module named tagging, locally win7

2010-06-29 Thread justin jools
Yes, great ;) that worked. I put it in my root Apps folder... seems very strange that it doesnt work in site-packages. Anyway this will do fine :) On Jun 29, 12:19 pm, Venkatraman S wrote: > On Tue, Jun 29, 2010 at 4:35 PM, justin jools wrote: > > I've installed Django Taggin

Re: context porcessors request.context media_url breaks admin

2010-06-29 Thread justin jools
Hi Tom if you read my original post you will realise that the error is being caused by setting of context processors to media_url (see original post). When context processors are active the {media_url} tag works perfectly, but breaks the admin. If I comment out : settings.py #TEMPLATE_CONTEXT_PROC

Re: context porcessors request.context media_url breaks admin

2010-07-08 Thread justin jools
{media url} with generic views. If you have a solution I would be happy to hear this. On 29 June, 13:55, Daniel Roseman wrote: > On Jun 29, 1:41 pm, justin jools wrote: > > > Hi Tom if you read my original post you will realise that the error is > > being caused by setting of con

Re: context porcessors request.context media_url breaks admin

2010-07-08 Thread justin jools
A_URL and in my base.html template: {{ media_url }}css/base.css but it's not picking it up? do i need to pass it with generic views? On 8 July, 12:35, Daniel Roseman wrote: > On Jul 8, 11:40 am, justin jools wrote: > > > Thanks for that. I did read something about having to add ser

Re: context porcessors request.context media_url breaks admin

2010-07-08 Thread justin jools
from yourapp.settings import MEDIA_URL register = Library() @register.simple_tag def media_url(): return MEDIA_URL And in my template file: {% load media_url %} I could not get either of these methods to work, can you give best guideline for this, Thanks, Justin Jools On 8 July, 12:35

Re: context porcessors request.context media_url breaks admin

2010-07-08 Thread justin jools
Wow... django docs can be so confusing... I could not believe it worked just by using upper case MEDIA_URL Thanks so much :) :) I spent a day trying figure this out... On 8 July, 13:14, Daniel Roseman wrote: > On Jul 8, 12:57 pm, justin jools wrote: > > > > > > &

'django.contrib.comments', Error: No module named comments. Can someone explain why?

2010-07-12 Thread justin jools
I've set up basic blog with, all running fine but when I runserver I get Error: No module named comments. I've checked the Python path (below) and the app/function is there. Can someone explain why it is isn't finding this when it finds all other installed apps e.g. markup, tagging. C:\Python26\L

RE: 'django.contrib.comments', Error: No module named comments.

2010-07-12 Thread justin jools
Oops! I had 'comments' in my settings.py installed apps for some reason... removed and works fine -- 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

RE: 'django.contrib.comments', Error: No module named comments.

2010-07-12 Thread justin jools
Oops! I had 'comments' in my settings.py installed apps for some reason... removed and works fine -- 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

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
y(function() { $('#nav li a').click(function() { alert('here!'); On Jul 15, 2:40 pm, David De La Harpe Golden wrote: > On 15/07/10 13:40, justin jools wrote: > > > 2. base.html with jquery nav, exactly the

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
doesn't change it: Home I see from our example I should put the function in the child template, I'll try this but seems strange it doesnt work in base template. On Jul 15, 2:40 pm, David De La Harpe Golden wrote: > On 15/07/10 13:40, justin jools wrote: > > > 2. base.html with j

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
{% block title %}{% endblock %} {% block content %}{% endblock %} c 2010 Powered by

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
Solved it!!! really stupid! I knew it would be something like this. I removed class="active" on home, now it works. Seems django was resetting to default base.html settings. It doesn't do this in straight HTML. So now I'll have to set the home active onload dynamically. hope this tip helps someon

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
rote: > On 15/07/10 15:19, justin jools wrote: > > >     > >            $(document).ready(function() { > >                            $('#nav li a').click(function() { > >                                      $('.active').removeClass('active

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
den wrote: > On 15/07/10 16:31, justin jools wrote: > > > I thought I had solved but I haven't. > > [...] > > using seperate block nav for evey page seems like a lot of > > duplication... > > Well, you could also pass through a context variable to the templ

Re: Jquery nav disabled in Django base template??? help please

2010-07-15 Thread justin jools
;href') == window.location.pathname) { >             $(this).addClass('active'); >         } >     }); > > }); > > On Jul 15, 12:15 pm, David De La Harpe Golden > > > > wrote: > > On 15/07/10 16:31, justin jools wrote: > > > > I thought I h

how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-16 Thread justin jools
RE: http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ I tried following this to install Django-Mingus, it says it is easy but not for a newbie who knows nothing about virtualenv! tsk! I don't have pip so I ran easy_install 1. easy_install virtualenv... no problem 2. easy_instal virtualen

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-16 Thread justin jools
gt; Ivan > > On Sat, Jul 17, 2010 at 7:09 AM, justin jools wrote: > > RE:http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ > > I tried following this to install Django-Mingus, it says it is easy > > but not for a newbie who knows nothing about virtualenv! t

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-16 Thread justin jools
Hope it helps. > > Cheers, > Ivan > > On Sat, Jul 17, 2010 at 7:42 AM, justin jools wrote: > > Hi, > > sorry was > > > c:\django>mkvirtualenv myblog > > 'mkvirtualenv' is not recognized as an internal or external command, > > operable pr

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
still trying to install django-mingus I loggged into my server with ssh and installed virtualenv and virtualenvwrapper easy_install virtualenv pip virtualenvwrapper ok... trying to follow the install instructions(bottom). I guess virtualenv/ virtualenvwrapper need setting up? 1. mkvirtualenv my

trying to install django-mingus/ virtualenv / virtualenvwrapper help!

2010-07-17 Thread justin jools
still trying to install django-mingus I loggged into my server with ssh and installed virtualenv and virtualenvwrapper easy_install virtualenv pip virtualenvwrapper also installed git ok... trying to follow the install instructions(bottom). I guess virtualenv/ virtualenvwrapper need setting up?

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
ere it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin jools wrote: > > > still trying to install django-mingus > > > I loggged into my server with ssh and installed virtualenv and > > virtualenvwrapper > > easy_i

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
source > /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the > path to virtualenvwrapper.sh depending on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin jools wrote: > > > still trying to

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
I found it in: source /home/cc11/public_html/virtfs/bin/virtualenvwrapper.sh Thanks for your help, I shall now try django-mingus again On 17 July, 15:27, justin jools wrote: > says virtualenvwrapper is in  /home/cc11/public_html/virtfs/lib/ > python2.4/site-packages (bottom) so I

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
le, changing the > path to virtualenvwrapper.sh depending on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin jools wrote: > > > still trying to install django-mingus > > > I loggged into my server with ssh an

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
g on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin jools wrote: > > > still trying to install django-mingus > > > I loggged into my server with ssh and installed virtualenv and > > virtualenvwrapper > >

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
; time. You will want to add the command tosource > /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the > path to virtualenvwrapper.sh depending on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin joo

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
nging the > path to virtualenvwrapper.sh depending on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28 AM, justin jools wrote: > > > still trying to install django-mingus > > > I loggged into my server with ssh and ins

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
be done one > time. You will want to add the command tosource > /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the > path to virtualenvwrapper.sh depending on where it was installed by pip." > > Did you do this part? > > On Jul 17, 2010, at 9:28

Re: install django-mingus blog / http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ pls help

2010-07-17 Thread justin jools
Trying to install django-mingus (see bottom, not easy at all!) When installing * 6 pip install -r stable-requirements.txt ironed out 1 error with BeautifulSoup==3.0.8.1 - see bottom (http:// github.com/montylounge/django-mingus/issues/issue/36) now I get markdown error, tried changing markdown2.

django-friends | setup views.py with templates

2010-09-06 Thread justin jools
trying to setup simple social network have installed: registration, profiles, accoutns, messages but am stuck as how to setup/link the views.py to templates/ notification. I guess this is what is needed to be done. Any help much appreciated -- You received this message because you are subscribe

Re: django-friends | setup views.py with templates

2010-09-06 Thread justin jools
Hi I have setup jtauber notification and friends apps but now I am stuck as to how to add views/urls to produce add friends/friends accept/friends list etc. please help me through the process thx On 6 Sep, 18:24, justin jools wrote: > trying to setup simple social network > have ins

Django-friends help

2010-09-07 Thread justin jools
Canyone with experience of django-friends give some setup guidelines. I have read the docs but can't follow it easily, they are a bit sparse for myself as beg-internediate level user. I have installed: dajngo apps: registration, profiles, accounts, messages, notifications and friends. I'm having

Anyone used django-simple-friends?

2010-09-08 Thread justin jools
Have setup django-simple-friends, adn can pass url to add/block/delete friends easily: http://127.0.0.1:8000/friends/add/jim/ http://127.0.0.1:8000/friends/block/jim/ http://127.0.0.1:8000/friends/list/admin/ I have the friend list template setup but don't know what variables to pick up from vi

django-simple-freinds: template tags and Friendship request

2010-09-09 Thread justin jools
Hi Muhuk, I am using django-simple-friends app, much easier to setup than django- friends. but need a little help and was hoping for some guidance. I have set up friends_list.html no problem: Friend List Friends for {{ user }} {% for friends in friends_list %} {{ friends.username }} {%

django simple friends help

2010-09-10 Thread justin jools
Hi Muhuk, I am using django-simple-friends app and I was hoping someone would give me some guidance. http://github.com/muhuk/django-simple-friends I have set up friends_list.html no problem: Friend List Friends for {{ user }} {% for friends in friends_list %} {{ friends.username }} {% e

django-simple-friends help

2010-09-10 Thread justin jools
Hi, I am using django-simple-friends app and was hoping you would give me some guidance. http://github.com/muhuk/django-simple-friends I have set up friends_list.html no problem: Friend List Friends for {{ user }} {% for friends in friends_list %} {{ friends.username }} {% endfor %}

Re: django-simple-freinds: template tags and Friendship request

2010-09-10 Thread justin jools
Hi Preston thanks for your response but still having problem with this: views.py (full list below) passes: extra_context['friendship_requests'] = {'incoming': incoming_requests, 'outgoing': outgoing_requests} I have tried looping through this to ex

have gdata-2.0.11 installed | cant find gdata.contacts.service | error: no attribute 'GDATA_NAMESPACE'

2010-09-12 Thread justin jools
I am installing django-friends and am getting error from importer.py: (full file at: http://github.com/jtauber/django-friends/blob/master/friends/importer.py) cannot not import this, yet I have gdata-2.0.11 on my python path, with contacts.service inside import gdata.contacts.service is causing

Template library account_tags not found | 'account_tags' is not a valid tag library

2010-09-12 Thread justin jools
getting this error trying to load templatetag in my account_tags template: {% load account_tags %} get this error: (detail at btootm) Template library account_tags not found | 'account_tags' is not a valid tag library tried at bash: from django.contrib.admin.templatetags import account_tags g

help setting 'apps' folder Error: No module named registration

2010-09-21 Thread justin jools
I have setup 'apps' folder with __init__.py inside and 'registration' app inside 'apps' I then refer to it with: 'apps.registration' in installed_apps/settings.py When I run syncdb it gives error: Error: No module named registration -- You received this message because you are subscribed to th

Re: help setting 'apps' folder Error: No module named registration

2010-09-22 Thread justin jools
add to settings.py: import os import sys PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps")) full article: http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/ On Sep 21, 10:14 pm, justin jools

help setting 'apps' folder... path issue

2010-09-22 Thread justin jools
I am trying to run my apps from 'apps' folder and have 'apps.registration' installed apps/settings.py but the admin.py is having some problem with the path and I get error in admin: ImportError at /admin No module named registration.models Request Method: GET Request URL: http://devhead.alwaysd

InterfaceError at /admin/ Error binding parameter 1 - probably unsupported type.

2010-09-23 Thread justin jools
Have searched everywhere for solution to this error (below) when loggin in to admin I also get this error during form post rediect, thinking it it something to do with intalled apps/middleware or post setting maybe but dont know what. Anyone come across this? Many Thanks InterfaceError at /admin

django-registration vs django-account + django-url | opinions?

2010-09-23 Thread justin jools
I have tried out django-registration and liked the simplicity of it, but following the pinax project, (and using their apps to instruct my own build) I see they use: django-account which also requires django-url I have started just started playing with it and was wondering if anyone has any opin

newbie: how do i filter a list in a template?

2010-02-16 Thread justin jools
models.py - for Car Manufacturer and Models class dbModel1(models.Model): dbfield1 = models.CharField("Product Manufacturer", max_length=200, unique=True) class dbModel2(models.Model): dbforeignkey = models.ForeignKey(dbModel1) dbfield1 = models.CharField("Model", max_leng

Re: newbie: how do i filter a list in a template?

2010-02-16 Thread justin jools
I solved it after playing around for 3 hours it came to me: compare the make.id to model.dbforeignkey.id hope this helps someone :) {% for make in make_list %} make {{ make }} {% for model in model_list %} {% ifequal make.id model.dbforeignkey.id %} model {{ m

simple friends template help

2011-03-27 Thread justin jools
need some help setting up templates for friends list: how do I iterate a list of invited friends and are friends? I have tried: {% for friends in Friendship.objects.are_friends %} target_user: {{ friends.target_user}} current_user:{{ friends.current_user}} are_frien

django-simple-friends template help

2011-03-27 Thread justin jools
need some help setting up templates for friends list: how do I iterate a list of invited friends and are friends? I have tried: {% for friends in Friendship.objects.are_friends %} target_user: {{ friends.target_user}} current_user:{{ friends.current_user}} are_frien

Re: simple friends template help

2011-03-28 Thread justin jools
I now have a different overriding problem with this simple-friends app: url patterns are simple: urlpatterns = patterns('friends.views', url(r'^$', 'friend_list', name='friends_home'), url(r'^list/(?P\w+)/$', 'friend_list', name='friend_list'), url(r'^a

Re: simple friends template help

2011-03-28 Thread justin jools
create_' \ 'userblocks_instance') On Mar 28, 6:57 pm, Joel Goldstick wrote: > On Mon, Mar 28, 2011 at 12:14 PM, mike171562 > wrote: > > > > > Maybe you could use the ifequal tag in your template, not sure what >

django-simple-friends + notifications: how to intergrate?

2011-03-28 Thread justin jools
I have both simple-friends and notifications running and workign and have set up notice types. How do I use signals from friend request for instance to trigger notice types? examples simple-friends: class FriendshipRequest(models.Model): from_user = models.ForeignKey(User, related_name="inv

Django Notification - can't send notifications

2011-03-28 Thread justin jools
can't send notifications have tried adding (in notification models.py): if notification: notification.send([self.from_user], "friends_accept", {"invitation": self, "new_user": self.to_user}) but does nothing although I can enter notices manually in admin. -- You received this message be

django custom template tags: how to send to (parser, token)

2011-03-30 Thread justin jools
I've just started using custom tags and need some help parsing info to: @register.tag def friends_of(parser, token): tag_name, user_var = token.split_contents() return FriendsOfNode(user_var) class FriendsOfNode(template.Node): def __init__(self, user_var): self.user_var = tem