This is likely exactly what you're looking for:
http://www.b-list.org/weblog/2006/jun/07/django-tips-write-better-template-tags/
-justin
On Mon, Jun 29, 2009 at 9:16 AM, Joshua Partogi wrote:
> Dear all,
> Currently I want to make a custom templatetags for loading objects to be
&g
I corrected the build_ext error and successfully built/installed by
adding the full path to pg_config in setup.cfg.
On Jun 23, 10:19 am, Chris Haynes wrote:
> Using what I believe is the latest version of psycopyg, I get:
>
> 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build
> running build
>
It would also be worth pointing out Jacob's django-googlecharts
template tags. I've used them before and they work solidly, as long
as google charts are what you need.
http://github.com/jacobian/django-googlecharts/tree/master
-justin
On Thu, 16 Jul 2009, Keith Pettit wrote:
>
is also a solid text.
-justin
On Tue, 21 Jul 2009, Stodge wrote:
>
> What is currently the best Django development book? There seem to be
> quite a few on Amazon.ca, but none are reviewed. I'm familiar with
> Python and the very basics of Django and I've been developing s/w fo
The included login view (django.contrib.auth.views.login) takes an
optional "next" argument for this:
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login
Hope that helps.
-Justin
On Jul 31, 9:15 am, When ideas fail wrote:
> I was wondering if there
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
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
: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
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
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
>
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
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
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? (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
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
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
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
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
headache and ditch godaddy. They're fantastic for domain
purchasing, but leave you wanting when it comes to hosting. Especially
for something like Django. I might suggest http://webfaction.com/ as a
reasonable alternative. Trust me in that any amount you may have prepaid
for godaddy hos
I believe you're looking for the {% cycle %} template tag, which you
can find more information about here:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle
{% cycle '' '' %}
-justin
On Wed, Mar 25, 2009 at 6:15 AM, nicemira wrote:
>
> pleas
ated SQL and
parameters, respectively. Personally, I prefer it over the
connection.queries approach because you can look at the SQL without
having to execute it.
-Justin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Have you tried this yet?
info_dict = {
'queryset': Entry.objects.order_by(-featured),
'date_field': 'pub_date'
}
urlpatterns = patterns('django.views.generic.date_based',
...
(r'^$', 'archive_index', info_dict),
)
I haven't checked whether or not it works, but it seems like it'd do
t
On Jun 11, 6:35 pm, Joseph Brown wrote:
> Hi Justin - Thanks & sorry I missed your email until just now. I did try
> that, and it's interesting: it worked for any of the date based generic
> views that took a datepart parameter in the url, i.e. archive_year,
> archive_m
Two ideas:
1. Instead of having the slug prepopulated, override save() [1] and
run slugify yourself.
2. Instead of running slugify on the name, why not just access its
slugfield directly?
HTH,
Justin
[1]
http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods
d URL namespaces.
HTH,
Justin
On Nov 7, 2:03 am, Good Z wrote:
> Dear All,
>
> We want upgrade our software from Django0.95 to Django1.1. The latest
> available release is Django 1.1.1. Have few queries:
> - What is difference between Django 1.1 and Django1.1.1
> - I could no
Not SASS, but in the same vein is http://sandbox.pocoo.org/clevercss/ which
has the benefit of being in python.
-justin
--
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...@googlegrou
Hi,
I've created a custom user model in my application by subclassing
django.contrib.auth.models.User. This user model is working, but there
are a couple of problems I have with it.
1) The change password link in the admin site doesn't work?
2) The default password box on the add/edit page for a
, sounds
like you don't have the mysql client libraries installed.
In ubuntu that would be sudo apt-get install libmysqlclient15-dev
Not sure on the name of the corresponding red hat package.
~Justin
--
You received this message because you are subscribed to the Google Groups
"Djan
On Wed, Dec 16, 2009 at 5:21 AM, Victor Hooi wrote:
> class ExaminationRecord(models.Model):
> assessment = models.OneToOneField(AssessmentTask)
I don't particularly understand the point of this class?
~Justin
--
You received this message because you are subscribed to
p://127.0.0.1:8000/hello/ or http://127.0.0.1:8000/ ?
(hint: http://127.0.0.1:8000/hello/ should work.)
~Justin
--
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 unsubscri
his)
/home/
user/ <- ""/home/user/proj/manage.py custom" command doesn't exist.
proj/ <- "/home/user/proj/manage.py custom" works
manage.py
app/
management/
commands/
custom.py
Is there something I'm missin
On Tue, Dec 22, 2009 at 12:16 PM, Doug Blank wrote:
>
> You probably just need to set your PYTHONPATH:
>
> cd /home/user
> PYTHONPATH=proj python proj/manage.py custom
>
That was my initial thought too, however setting the PYTHONPATH does
not affect the behaviour in this i
On Tue, Dec 22, 2009 at 3:51 PM, Alex_Gaynor wrote:
>
> Do you have __init__.py files in each of those directories?
Of course - Else it woud not work from the project's root directory either.
~Justin
--
You received this message because you are subscribed to the Google Groups
&q
I'm at a loss as to understand why, but I've worked out what I need to
add to pythonpath.
PYTHONPATH=/home/user
i.e. The pythonpath needs to include NOT the project's root, but the
directory one level ABOVE that for custom commands to work properly...
Thanks for the help guys.
~
27;s and runs it instead, and put that on the path. This
> last works on windows too, using bat files (or whatever the cmd.exe
> equivalent is).
>
Thanks Bill, I'd considered that route, but ultimately, I had a puzzle
that needed solving. =)
~Justin
--
You received this message b
ased database writes?
>
> Would really appreciate any pointers you can give me. Thank you.
quick google found this:
http://github.com/fwenzel/django-gearman
cheers
justin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
If you're passing a "year" and "month" variable, I would use
Post.objects.filter(publish_date__year=year,
publish_date__month=month).
-Justin
On May 30, 12:34 am, greg wrote:
> Hello,
>
> I'm (almost) done coding up my blog in Django.
>
> Right
It says you're missing a 500.html template.
Without it, you can't see any error pages. See
http://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view
Once you've made that template, you should be able to see what other
errors are happening.
-Justin
On
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
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
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
Have you set your MEDIA_ROOT, MEDIA_URL and ADMIN_MEDIA_PREFIX
settings in settings.py?
On Jun 19, 12:06 pm, Jagdeep Singh Malhi
wrote:
> now my httpd.conf file is :-
>
> Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/
> admin/media/
>
> media/>
> Order deny,allow
> Allow
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
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
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
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
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.
>
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
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
{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
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
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
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:
>
>
>
>
>
> &
As another idea, can you just update your SITE_ID setting (http://
docs.djangoproject.com/en/1.2/ref/settings/#site-id)? It defaults to 1
(for the example.com instance), but if you've got a new Site object
for your actual domain, you should just be able to use its id instead.
-Justin
On Jul
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
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
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
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
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
{% block title %}{% endblock %}
{% block content %}{% endblock %}
c 2010 Powered by
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
rote:
> On 15/07/10 15:19, justin jools wrote:
>
> >
> > $(document).ready(function() {
> > $('#nav li a').click(function() {
> > $('.active').removeClass('active
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
;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
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
ingus.git
cd django-mingus/mingus
pip install -r stable-requirements.txt
cp local_settings.py.template local_settings.py
./manage.py syncdb
./manage.py loaddata test_data.json
./manage.py runserver
On 16 July, 22:29, Ivan wrote:
> Hi Justin,
>
> What is the error message?
>
> Cheers,
&
aha...
thanks for that
My development server is linux but I always test locally on windows
before uploading...
Will try this out, thanks...
Maybe I should setup a linux local test environment
On 16 July, 23:40, Ivan wrote:
> Hi Justin,
>
> I guess, you are using Windows OS,
>
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
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?
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
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
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
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
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
> >
; 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
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
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
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.
ld in fields:
... print '%s: %s' % (field.name,
photo.__getattribute__(field.name))
and get a list of all of photo's field names and values. I'm not sure
how best to do this in a template yet, but it shouldn't be that hard
to figure out.
HTH,
Justin
On Jul 17, 4:11 am,
When is that code running? If it's in the head element and not
checking whether the document's finished yet, it might be executing
before the anchor you're targeting is ready. Consider either using
this, for something using jQuery:
$(document).ready(function() {
window.location = window.locati
so useful.
HTH,
Justin
On Jul 17, 12:58 am, haibin wrote:
> hi,
>
> I am trying to use GeoIP part of GeoDjango. I importing it by from
> django.contrib.gis.utils import GeoIP but getting import error. Do I
> have to install someting or do the whole installation process for
>
s All,
>
> Its now clear to me. For sharing purpose, maybe I'll go for pygeoip?
> Since I really only need the GeoIP only. Much simpler, though could be
> much slower?
>
> On Jul 18, 12:20 am, Justin Myers wrote:
>
> > Yes, there are dependencies for Geo
://docs.djangoproject.com/en/1.2/howto/custom-template-tags/
-Justin
On Sep 1, 8:12 am, Pradnya wrote:
> ok. Is there anyway I can load model inside HTML template? or
> basically what is {% load %} is used for ?
>
> On Sep 1, 6:02 pm, Jonas Geiregat wrote:
>
> > You don
logic. It's
_only_ designed for presentation. For the most part, if you want to
call a function, call it in the view.
-Justin
On Sep 1, 11:02 pm, Pradnya wrote:
> Hey thanks,
> Is there anyway I can call a function in HTML template?
>
> On Sep 1, 6:23 pm, Steve Holden wrote:
>
What error message is it giving you?
I'd assume it's a problem with the objects you're passing it, since
zip is a built-in Python function:
http://docs.python.org/library/functions.html#zip
On Sep 5, 11:29 am, Jagdeep Singh Malhi
wrote:
> > If these objects are lists, say list1 and list2, in yo
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
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
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
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
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 }}
{%
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
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 %}
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
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
kwargs and 'instance' in kwargs:
if kwargs['created']:
profile = UserProfile(user=kwargs['instance'])
profile.save()
post_save.connect(create_profile, sender=User)
HTH,
Justin
On Sep 11, 8:45 pm, darren wrote:
> I think that my m
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
It already tells you why it's showing that page. You need to add some
entries to urls.py, at the very least. The tutorial Sithembewena
linked you to is a good start.
-Justin
On Sep 16, 12:25 am, perfecthills wrote:
> Have a website build on django, i desire to transfer the website to
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
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
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
101 - 200 of 389 matches
Mail list logo