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.

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: 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
; 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
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
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
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
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
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

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
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

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

2010-07-16 Thread justin jools
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, >

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

2010-07-16 Thread justin jools
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, &

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: 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

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
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
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
{% 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
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
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: '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

'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: IntegrityError

2010-07-10 Thread Justin Myers
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

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: > > > > > > &

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
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
{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-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: 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: 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: 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

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
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

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: Serving media files

2010-06-19 Thread Justin Myers
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

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

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: Django with Apache and mod_python

2010-06-06 Thread Justin Myers
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

Re: Query Posts By Date

2010-05-30 Thread Justin Myers
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

Re: Using a message queue from Django to write to database asynchronously

2010-05-08 Thread justin randell
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

Re: Hosting for Django sites

2010-04-04 Thread Justin Myers
easy to set up subdomains and media URLs (so much easier to me than mucking around in httpd.conf and the like), and I like the backup features in Rackspace's control panel. Overall, I'd say you can't go wrong with either, honestly. HTH, Justin On Apr 3, 5:35 pm, shofty wrote: > +1

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

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: Namespace Security

2010-01-12 Thread Justin Steward
superuser, or if run using python manage.py shell) I'm sure this approach could be expanded to use namespaces/groups instead of user on the model's foreign key. To my mind at least, it's a little easier to follow what's going on than overriding various methods in admin.py ~Justin -

Re: why does if statement fail with

2010-01-08 Thread Justin Steward
ject.com/en/dev/releases/1.2-alpha-1/#smart-if-tag ~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 unsubscribe from this group, send email to django-users+uns

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-07 Thread Justin Steward
gt;        unknown command or invalid arguments:  "schema;". Enter ".help" for > help >        sqlite> .schema project.db >        sqlite> .schema project >        sqlite> .schema project; >        sqlite> Try this: $ sqlite3 /path/to/db ~Justin -- Y

Re: use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-07 Thread Justin L
lly   > caching views per analytics cookie change... That bugged us for a   > while in our project. > > Att, > Victor Lima > > Em 05/01/2010, às 21:32, Justin L escreveu: > > > For several months, we have been caching views using the URLconf > > method (urls.py).

use of @vary_on_cookie decorator with URLconf based cache_page usage

2010-01-05 Thread Justin L
For several months, we have been caching views using the URLconf method (urls.py). An entry from urls.py is below as an example: url(r'^(?P.*)/content/(?P[-\w]+)/$$', cache_page (hierarchies.views.category_content_detail, CACHE_TIMEOUT), name='category_content_detail'), Recently, we had a need to

Re: Photo + thumbnail

2010-01-04 Thread Justin Myers
photo) # NOT .path, so this is a relative path, not an absolute one to make this work properly. Hope that helps. -Justin On Jan 4, 5:15 am, nameless wrote: > I have writed this code but it doesn't work. What is the error ? > > from django.db import models > from django.forms import Mod

Re: Custom Django-Admin commands

2009-12-22 Thread Justin Steward
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

Re: Custom Django-Admin commands

2009-12-22 Thread Justin Steward
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. ~

Re: Custom Django-Admin commands

2009-12-21 Thread Justin Steward
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

Re: Custom Django-Admin commands

2009-12-21 Thread Justin Steward
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

Custom Django-Admin commands

2009-12-21 Thread Justin Steward
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

Re: Initial snag with the "Django Book"

2009-12-16 Thread Justin Steward
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

Re: FK to an Abstract class? Alternative?

2009-12-16 Thread Justin Steward
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

Re: can any on help me how to create a sample model project.

2009-12-16 Thread Justin Steward
, 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

Custom User Model, Django Admin, and the password field

2009-12-02 Thread Justin Steward
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

Setting up a MultiValueField + custom model field in admin

2009-11-29 Thread Justin
Hi guys, Trying to teach myself a bit about creating custom fields (for both forms and models) for Django. Starting off with a somewhat contrived storing a street address in one field. I seem to have gotten the model field working, as I can run python manage.py shell and successfully fill out th

Re: Using Sass with Django makes CSS so much easier to maintain

2009-11-17 Thread Justin Lilly
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

Re: Feedback on Django1.1.1

2009-11-07 Thread Justin Myers
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

Re: Slugify doesn't match pre-populated slug field.

2009-09-23 Thread Justin Myers
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

Re: Django + Godaddy

2009-08-26 Thread Justin Lilly
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

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: 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

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

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

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

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

Re: user profile problems

2009-08-19 Thread Justin
Figured it out. Apparently when I did my intial test I did not have a profile create for the user which was causing a different error. the correct string was 'engine.UserProfile' Justin On Aug 19, 10:11 am, Justin wrote: > I am sure this is a newbie mistake but I can't se

user profile problems

2009-08-19 Thread Justin
length=1) user = models.ForeignKey(User, unique=True) def __unicode__(self): return "%s - %s" % (self.panel_id, self.email) class Meta: app_label = 'engine' Any help would be appreciated, I am sure this is something sim

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

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

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 >

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-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-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

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: redirecting after login

2009-08-01 Thread Justin Myers
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

Re: Recommendations for a Django development book?

2009-07-21 Thread Justin Lilly
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

Re: Graphing (Pie Chart, Bar Graphs, Line Plots, etc) in Django?

2009-07-17 Thread Justin Lilly
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: >

Formsets with many to many relationship

2009-07-16 Thread Justin
I am trying to figure out the best way to have an inline formset with a many to many relationship. Right now I am the relationship is through a intermediate model as shown here in the docs http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships. It works

Re: psycopyg setup error: no build_ext

2009-07-06 Thread Justin Johnson
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 >

Re: Custom templatetags for loading objects

2009-06-29 Thread Justin Lilly
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

Re: Base view class ?

2009-06-29 Thread Justin Lilly
oing a bunch of similar stuff that's just a tiny bit different, for which you can just subclass the view class for the bits you need to change. Hope that helps. -justin On Jun 29, 2009, at 6:28 AM, Raja wrote: > > You could use decorators (following the Decorator pattern) to d

Re: Problem with generic views

2009-06-26 Thread Justin Lilly
Actually, As he didn't provide a template_object_name parameter, the generic view's default context variable is object_list. -justin On Fri, Jun 26, 2009 at 8:18 PM, maplye wrote: > > task_list not Task.object.all in the view. > > 2009/6/27 Technicalbard : >>

Re: how to override ordering in date-based generic views

2009-06-12 Thread Justin Myers
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

Re: how to override ordering in date-based generic views

2009-06-09 Thread Justin Myers
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

Re: finding out what SQL Django generated

2009-04-15 Thread Justin Bronn
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

Multiple Database in 1.0.2 with custom manager

2009-04-05 Thread Justin
ist. I am pretty new at this stuff so I am not sure if this works with 1.0.2, I am going to look into the Manager code to see if I can figure it out but I am just wondering if I am doing something wrong here. Thanks, Justin --~--~-~--~~~---~--~~ You received th

Re: pagination django

2009-03-25 Thread Justin Lilly
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

Re: djWarehouse setting up

2009-03-03 Thread Justin Li
It looks cool even though it depends on many other components. I'm fighting to set it up by following the documentation. Thanks a lot! Justin On Mar 2, 11:03 am, Alex Gaynor wrote: > On Sun, Mar 1, 2009 at 9:07 PM, Justin Li wrote: > > > Hey Guys, > > > I'm s

djWarehouse setting up

2009-03-01 Thread Justin Li
he code is very complex. It's not easy to find out how and why at a short time. Anyone here has experience to setup a site with djWarehouse? Any tips will be appreciated. Thanks in advance! Justin --~--~-~--~~~---~--~~ You received this message because you are su

Re: Mutli-Assignable Models

2009-02-16 Thread Justin Lilly
bstracting these relationships is the best way to go about the problem, its just the method of abstraction that I'm unsure on. -justin On Sun, Feb 15, 2009 at 10:32 AM, Peter Herndon wrote: > > Hi Justin, > > I can't view your code at the moment, but it seems to me you want a

Re: Geodjango GPolygon

2009-02-16 Thread Justin Bronn
her words (lon, lat). Thus, your GEOS geometry should have the coordinates in (lon, lat) order. However, mapping APIs use (lat, lon) order instead. This is why GPolygon switches the order, to be compatible with the GMaps API -- and you probably had the order wrong to begin with in your geom

Re: date-based ordering confusion

2009-02-14 Thread Justin Myers
.com/en/dev/ref/models/options/#ordering While order is something that's handy to have in the admin, it's not specific to it. It's a property of the model itself, since it ends up in any QuerySet involving that model. Hope that helps, Justin --~--~-~--~~-

Re: How to set the right PostGIS path to PostgreSQL 'share' directory

2009-02-13 Thread Justin Bronn
ll likely be able > to give you more detailed help. > Or try the geodjango mailing list: http://groups.google.com/group/geodjango -Justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

<    1   2   3   4   >