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
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
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:
>
>
>
>
>
> &
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
75 matches
Mail list logo