Re: ComboBox

2022-06-05 Thread Phil Parkin
-off, or infrequent which they will not want to clutter their options list with but still need to record against a transaction. *Ryan *- thanks, the datalist looks like it might be right option. I will look at custom widgets. All the best - Phil On Wednesday, 1 June 2022 at 09:13:11 UTC+1 rgam

ComboBox

2022-05-31 Thread Phil Parkin
of doing this with a Choicefield plus a separate Charfield, but is there a better way? Thanks -Phil -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dj

best way to display static python monitoring thread output

2020-03-23 Thread Phil Kauffman
Hello, Wondering if I can bounce my problem off some folks for an idea of how to solve it. My colleague and I are trying to pull in a python Rest API library for a piece of software. Rather than have end users run scripts we wanted to make a basic gui for them. I've got the basic tests

Re: understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread Phil Kauffman
please let me know. On Thursday, February 20, 2020 at 1:16:07 PM UTC-5, OnlineJudge95 wrote: > > > On Thu, Feb 20, 2020 at 11:38 PM Phil Kauffman > wrote: > >> Hello, >> >> Newbie in need of a little shove. It seems I need to review the purpose >> of th

understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread Phil Kauffman
Hello, Newbie in need of a little shove. It seems I need to review the purpose of the urls.py file. At present I am getting an HTTP Error 405 with the following: urls.py: path('', views.show_site, name = 'home'), path('site-view', views.List.as_view(), name='site-view') views.py class

Re: How to pass pk through URL to CreateView

2020-02-18 Thread Phil Kauffman
Hello, Did you get any headway on this issue? I'm a novice Django user but was thinking of doing something similar with my code for a project I'm working on. I'm struggling with reverse lookup on foreign key. Have you had any issues doing reverse lookup on FK? For example in a view if you

Re: filter objects dynamically on page render based on button click (beginner question)

2020-02-13 Thread Phil Kauffman
mework, and how > to connect it to Django. Those are useful things to learn, but they're not > overnight reads, and can have performance pitfalls. > > Good luck, Bill > > On Wed, Feb 12, 2020 at 3:17 PM Phil Kauffman > wrote: > >> Hello, I am struggling with trying to filt

filter objects dynamically on page render based on button click (beginner question)

2020-02-12 Thread Phil Kauffman
Hello, I am struggling with trying to filter child objects based on parent object selection on index.html (sites.html in example). On my sites.html, I list the office sites and a button to click for each, upon clicking I want to load the profile list for users only at that site, presently it's

manage.py not able to run any commands

2019-12-17 Thread Phil Yang
Hi, All of a sudden, when I tried to run manage.py runserver, it didn't produce any output, and it didn't do anything. In fact, the manage.py script seems to not be able to run other commands, such as startapp or createsuperuser. I've already used the command many times prior, and it has

manage.py can't run any commands

2019-12-17 Thread Phil Yang
Hi, The manage.py script for all my projects has suddenly stopped working. It can't run any commands, such as runserver or startapp. Python is installed correctly; I have tested this with other scripts. I deleted Django and reinstalled, the problem still persists. Basically, whenever I run

Trouble installing Django

2018-09-03 Thread Phil Campaigne
I have successfully installed python 3.7 and virtualenv. on my MACBook Pro with MAC High Sierra 10.6 Now I am having trouble installing Django I don't understand the error message I am getting...especially teh last line. Owners-MacBook-Pro:realityBB owner$ pip install Django Collecting

Re: Displaying single-line progress while a management command runs

2016-05-23 Thread Phil Gyford
> > Den 9. maj 2016 kl. 14.23 skrev Phil Gyford <gyf...@gmail.com>: > > > > I have a custom management command which calls a method in another > class, which fetches lots of data from a third-party API. Fetching the data > could take a few seconds or it could take ov

Displaying single-line progress while a management command runs

2016-05-09 Thread Phil Gyford
this... Thanks, Phil -- http://www.gyford.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Re: how to use apache instead of django_server

2014-12-29 Thread phil...@bailey.st
Sorry, just forgot to attach the link https://forge.puppetlabs.com/pbailey/django_bootstrap Best, Phillip On 29/12/14 18:09, phil...@bailey.st wrote: > > Hello there, > > if you are familiar with puppet you can take a look to this module. > > Best, > > Phil

Re: how to use apache instead of django_server

2014-12-29 Thread phil...@bailey.st
Hello there, if you are familiar with puppet you can take a look to this module. Best, Phillip On 29/12/14 17:26, th.gran...@free.fr wrote: > Merci > Thanks > > just another question > > when you don't use apache but the internal server of Django you start > the command runserver for

Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st
On 26/12/14 16:31, Fellipe Henrique wrote: > Hi, > > There's any actual open project to create a company "social" network > using Django? I search on google, and I don't find any project using > django (or even other python framework) only PHP or Ruby... > > Thanks, > > Cheers! > Another

Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st
Event though the following tutorial is not up to date with Django 1.7, it is still quite understandable. http://arunrocks.com/building-a-hacker-news-clone-in-django-part-1/ Best, Phillip On 27/12/14 17:10, Scot Hacker wrote: > > > On Friday, December 26, 2014 8:31:16 AM UTC-8, Fellipe

TypeError: unbound method save() must be called with NagiosLog instance as first argument (got nothing instead)

2014-12-06 Thread Phil F
CharField(max_length=250, blank=True, null=True) Any help appreciated ! Thanks, Phil. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Re: Django 1.7 and Python 2.6

2014-09-27 Thread phil...@bailey.st
Hello there, docker might do the job. Cheers, Phillip On 27/09/14 20:42, Babatunde Akinyanmi wrote: > Hi, > If you can download in your server then you can install python 2.7+ into > your virtenv. > > On 27 Sep 2014 19:54, "François Schiettecatte"

referencing choices tuples

2014-01-08 Thread Phil Hughes
I have a typical set of choices tuples that are then referenced in a choices=... reference in a field definition. It does, well, what it is supposed to do. But, I have a situation where I need to change the value of the field to "a different choice" in code in the view (rather than as a from

Re: ForeignKey pointing to "nothing"

2014-01-04 Thread Phil Hughes
That was it -- thanks. I usually create a MySQL database to use in development but decided to just use sqlite. So much for my "shortcut". On Saturday, January 4, 2014 4:26:59 AM UTC-6, Russell Keith-Magee wrote: > > > On Sat, Jan 4, 2014 at 9:57 AM, Phil Hughes <nic.

ForeignKey pointing to "nothing"

2014-01-03 Thread Phil Hughes
I have a model where a foreign key reference may be undefined when a record is first created. In particular, I have the following in my model seller = models.ForeignKey(User, related_name='+', blank=True, null=True) The form accepts not setting the seller field but I get an Integrity

Re: not able to run applets

2013-08-05 Thread Phil
How are you invoking the applet? Could you show your relevant code (template)? Regards, Phil On Monday, August 5, 2013 5:08:12 AM UTC-3, Kaushik Roy wrote: > > hello everyone, > > i am a new user of django and i am doing a small project for my course. i > can show static cont

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-05 Thread Phil
Without knowing more what you are doing, it is hard to help. But it seems like you are trying to decode as utf-8 something encoded differently. Please provide more information about what you are doing with Django. Regards, Phil On Sunday, August 4, 2013 3:38:11 PM UTC-3, Anton Yermolenko wrote

Re: Admin Center is not displaying

2013-08-05 Thread Phil
There are 3 steps in the documentation. You seem to have done the first 2, but what about your mysite/urls.py file? Did you uncomment those lines: # Uncomment the next two lines to enable the admin:*from django.contrib import admin**admin.autodiscover()* Regards, Phil On Sunday, August 4

Re: Importing project URLs without a database

2013-08-01 Thread Phil
Could you post the entire content of your script? There is no way those 2 lines (and the necessary "os" import) can cause this error. Regards, Phil On Thursday, August 1, 2013 5:39:46 PM UTC-3, Jon Dufresne wrote: > > Hi, > > I am trying to write a script that outputs info

Re: I all django's user I'm new here and also new to Python+ django technology. but i wanna learn phython........

2013-08-01 Thread Phil
interesting blogs on the topic. For Python itself, http://learnpythonthehardway.org/ or (my favourite) http://www.diveintopython.net/ are excellent resources to get you started. Regards, Phil On Thursday, August 1, 2013 6:28:48 AM UTC-3, Rakesh Balhara wrote: > > I all django's user I'm ne

Re:

2013-07-30 Thread Phil
er URL patterns. I am not a Django expert by any mean, but I don't think (r'', include('django.contrib.flatpages.urls')) works, since the regex is empty... Regards, Phil On Tuesday, July 30, 2013 1:02:53 PM UTC-3, Robin Lery wrote: > > > > -- Forwarded message ---

Re: Error.

2013-07-27 Thread Phil
5.1, using settings 'foo.settings.local' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Note that if will be slightly different if you are using gunicorn or something else. Also, make sure your settings file contains "DEBUG = True". Regards, Phi

Re: linux or windows

2013-05-31 Thread phil...@bailey.st
forgot to include a vagrant video how-to http://www.youtube.com/watch?v=MiRMvB65U1Y Best, Phillip On 31/05/13 21:53, phil...@bailey.st wrote: > Hi Kakar, > > if you want to use Linux within Window, I strongly advise you to > use Vagrant http://docs-v1.vagrantup.com/v1/docs/get

Re: linux or windows

2013-05-31 Thread phil...@bailey.st
Hi Kakar, if you want to use Linux within Window, I strongly advise you to use Vagrant http://docs-v1.vagrantup.com/v1/docs/getting-started/ Vagrant will bring up and running a Linux virtual server within minutes. Best, Phillip On 31/05/13 12:11, Kakar Arunachal Service wrote: > Hi! > I know

Re: Why Postgres over Mysql?

2013-05-17 Thread phil...@bailey.st
Hi frocco, Mysql was recently aquired by Oracle and the future isn't very bright for the database. So, if you have an application already using MySQL you can easly switch to mariadb https://mariadb.org/ or percona server www.percona.com. If you are starting a new project I strongly advise you to

Re: How to Handle XML and CSV processing in Django

2013-05-14 Thread phil...@bailey.st
On 14/05/13 18:41, Muhammad Ali wrote: > Thanks a lot for these resources. > > All the best, > Muhammad > Hi Muhammad, if you have a csv dataset you can try to import the data into mysql following my short tutorial.

Re: Accessing django development server using internet

2013-05-11 Thread phil...@bailey.st
On 07/05/13 17:38, Kakar wrote: > I have my project in my pc, and on python manage.py runserver, i can view it > on my browser. But how to view from other computer or on the internet and not > locally?... How to make my pc a server to view it from over the internet? Plz > help me guyz! > I

How best to cache a queryset of Comments?

2013-03-14 Thread Phil Gyford
ble/1.5.x/django/contrib/comments/templatetags/comments.py#L200> So I could subclass RenderCommentListNode, copy the render() method, and add caching there... but it feels a bit clunky and hacky compared to most customising I end up doing with Django these days... so is this the best/only way?

Re: empty static_url

2013-03-06 Thread Phil
s_list': sales_list},context_instance=RequestContext(request)) and that did the job. Thanks again. On Monday, March 4, 2013 2:33:50 PM UTC, Tom Evans wrote: > > On Sat, Mar 2, 2013 at 4:47 PM, Phil <phi...@gmail.com > > wrote: > > Hi, > > > > I'm using djan

empty static_url

2013-03-02 Thread Phil
Hi, I'm using django1.4.3 I have a django project with 3 apps. All 3 apps templates extend 'app.html'. On 2 of my projects the CSS loads fine, but on third one the CSS doesn't get loaded because it's not adding '/static/' to the url to the CSS. So instead of '/static/css/style.css' I'm

django setup advice for AWS Elastic Beanstalk

2013-02-03 Thread Phil
Hi, I am following the steps here to setup django on aws... http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html I got as far as step 6 but when I "git aws.push" I never see the django "it worked" page, only the green beanstalk page. I'm sure where I've gone

Re: virtualenv setup

2012-12-29 Thread Phil
when I get the error. If I runserver without activating source it works fine but that would be using my system wide python. Just need to figure out how to get it to recognise the virtualenv python. On Saturday, December 29, 2012 10:16:45 PM UTC, quinonesvictor wrote: > > Hi Phil > >

virtualenv setup

2012-12-29 Thread Phil
Hi, I have python/django working system wide. But am currently looking into using Heroku for a new project so am trying to get virtualenv setup for the first time. When I run "django-admin.py startproject whatever" it creates the project ok, but then when I run "python manage.py runserver

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
from my iPhone > > On 15-Dec-2012, at 9:34 PM, Phil Brant <phil...@gmail.com> wrote: > > OK, thanks for your help anyway. > > > On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales <cra...@gmail.com> wrote: > >> >> On Dec 15, 2012 11:30 AM, "Phil"

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
OK, thanks for your help anyway. On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales <cra...@gmail.com> wrote: > > On Dec 15, 2012 11:30 AM, "Phil" <phil...@gmail.com> wrote: > > > > Hi, > > > > I had django setup and working for over a year now

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
n manage.py runserver" because your > local directory isn't in your paths. > > Regards, > Xavier Ordoquy, > Linovia. > > Le 15 déc. 2012 à 16:14, Phil Brant <phil...@gmail.com> a écrit : > > I tried "manage.py runserver 8080" there just get "co

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
py runserver instead of > django-admin ? > > Regards, > Xavier Ordoquy, > Linovia. > > Le 15 déc. 2012 à 15:38, Phil <phil...@gmail.com> a écrit : > > Hi Xavier, I tried a project called "boom" too and same message, plus my > other 3 django projects I h

Re: error message on runserver locally

2012-12-15 Thread Phil
Hi Xavier, I tried a project called "boom" too and same message, plus my other 3 django projects I had working previously all get the same error now. On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote: > > Hi Phil, > > test is a python module. Your

error message on runserver locally

2012-12-15 Thread Phil
Hi, I had django setup and working for over a year now working with it on and off. I was away for a month, came back and now whenever I run "django-admin.py runserver 8080" I get the following error... ImportError: Settings cannot be imported, because environment variable

Re: Having LiveServerTestCase use same database as tests

2012-10-21 Thread Phil Gyford
-- From: Дмитрий Белавенцев <dizp...@gmail.com> Date: 21 October 2012 09:43 Subject: Re: Having LiveServerTestCase use same database as tests To: django-users@googlegroups.com Cc: p...@gyford.com Hi, Phil! I faced the same problem. Do you find the solution? вторник, 21 августа 2012 г., 22:24:59

Re: django.contrib.markup deprecated in 1.5 - what's the alternative?

2012-09-16 Thread Phil Gyford
Thanks for the pointer Jirka - I hadn't managed to find that ticket. Makes sense and, like you, I only have a few trusted users entering text that will be filtered. On 15 September 2012 19:37, Jirka Vejrazka <jirka.vejra...@gmail.com> wrote: > Hi Phil, > > incidentally

django.contrib.markup deprecated in 1.5 - what's the alternative?

2012-09-15 Thread Phil Gyford
I noticed that django.contrib.markup is marked as deprecated in Django 1.5 . If I'm starting a new project now, what alternative should I be using, to avoid running into problems with future versions of Django? I could write my own

Re: setting up Django Compressor

2012-09-05 Thread Phil
aid you were using > Django 1.4, which should have STATIC_URL available. > > > On Sunday, September 2, 2012 11:13:53 AM UTC-3, Phil wrote: >> >> Hi Joni, >> >> Thanks a million for reply. >> >> Yes I am using django runserver, its a working site just

Re: setting up Django Compressor

2012-09-02 Thread Phil
Hi Joni, Thanks a million for reply. Yes I am using django runserver, its a working site just trying to get compressor working locally before moving to production. My css works fine without the compressor app. I can't see the file if I copy it in my url I get a 500 error and the "CACHE"

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
nearly forgot, also in urls.py... (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), On Friday, August 31, 2012 10:04:26 AM UTC+1, Mugdha wrote: > > Please help me in generating site maps for app. which is in django. > -- You received this message because

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
Hi Mugdha, First add 'django.contrib.sitemaps' to your installed apps. Then create a file "sitemap.py" in your project root with something like from django.core.urlresolvers import reverse from django.contrib.sitemaps import Sitemap from blog.models import Entry class

setting up Django Compressor

2012-08-31 Thread Phil
Hi, Django1.4, Python2.7 I am currently trying to get django compressor to work locally, I installed django_compressor via pip install earlier, added it to my installed apps. Here is a copy of my base template {% load i18n %} {% load compress %}

Having LiveServerTestCase use same database as tests

2012-08-21 Thread Phil Gyford
to then test in the browser. Is there a way I can get LiveServerTestCase using the same database as the tests themselves? Thanks, Phil -- http://www.gyford.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
ackages'. ?? > > On Sun, Aug 19, 2012 at 3:19 AM, phil archambault > <philipi...@gmail.com > wrote: > > > > > > On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > >> > >> > >> > >> On Saturday, August 18,

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
; > On Sun, Aug 19, 2012 at 3:19 AM, phil archambault > <philipi...@gmail.com > wrote: > > > > > > On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > >> > >> > >> > >> On Saturday, August 18, 2012 5

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > > > > On Saturday, August 18, 2012 5:32:26 PM UTC-4, Daniel Roseman wrote: >> >> On Saturday, 18 August 2012 22:12:58 UTC+1, phil archambault wrote: >>> >>> >>> >&g

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:32:26 PM UTC-4, Daniel Roseman wrote: > > On Saturday, 18 August 2012 22:12:58 UTC+1, phil archambault wrote: >> >> >> >> On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote: >>> >>> >>> On 2012-

Re: Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
On Saturday, August 18, 2012 5:02:03 PM UTC-4, Thomas wrote: > > > On 2012-08-18, at 1:28 PM, phil archambault wrote: > > > Hey django users I'm trying to figure out how to dl and install django > into py, but I'm not having any luck with this issue. I have followed t

Mac.... Won't Download, sync to python, or install... please help

2012-08-18 Thread phil archambault
Hey django users I'm trying to figure out how to dl and install django into py, but I'm not having any luck with this issue. I have followed the directions down to the tee and issue still stands, any help help would be greatly appreciated! -- You received this message because you are

Re: html compress advice

2012-07-26 Thread Phil
ah, thank you. I'll take a look now. On Thursday, July 26, 2012 10:34:49 PM UTC+1, mhulse wrote: > > Hi, > > > Just looking for some advice/ wisdom really. > > While not a direct answer to your question, there was a discussion on > the group recently on the topic of the spaceless tag: > > "{%

html compress advice

2012-07-26 Thread Phil
Hi, Just looking for some advice/ wisdom really. I have compressed my css/js files and am now looking to strip all the white space from the html in the templates to help speed things up as much as possible. Is putting my hole base.html file between django's "spaceless" template tag an ok way

model translationissue

2012-07-12 Thread Phil
l/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/home/phil/project/urls.py" in 2. from views import * File "/home/phil/project/views.py" in 7. from forms import ContactForm File "/home/phil/project/forms.py" in

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
Now I'm getting the following error... Error: errors happened while running xgettext on __init__.py /bin/sh: 1: xgettext: not found It creates the right folders, but no .mo files. On Thursday, July 12, 2012 7:13:14 PM UTC+1, Phil wrote: > > ugh, that would explain it! Thanks a lot

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
Python2.7) > > > > (at the end of my settings file) > > > > # translation support > > ugettext = lambda s: s > > > > LANGUAGES = ( > > ('en', ugettext('English')), > > ('es', ugettext('Spanish')),

django-admin.py makemessages issue

2012-07-12 Thread Phil
Hi, (django version 1.3.1, Python2.7) (at the end of my settings file) # translation support ugettext = lambda s: s LANGUAGES = ( ('en', ugettext('English')), ('es', ugettext('Spanish')), ('de', ugettext('German')), ) LOCALE_PATHS = ( '/home/phil

multiple valuesfor keyword arguement 'prefix'

2012-02-16 Thread Phil
hon2.7/dist-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/home/phil/mydev/projects/job/blog/urls.py" in 15. (r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/(?P[-\w]+)/$', 'object_detail', entry_info_dict, 'blog_entry_detail', {'template_name': 'bl

Re: "manage.py" command not found

2011-08-30 Thread Phil
I opened my "manage.py" file to insert the line, but it was already there on the first line. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: "manage.py" command not found

2011-08-30 Thread Phil
The permissions were OK, but putting python in front of it seems to have worked(I have database connection issue now, but once I fix that I reckon it will be work)! Thanks Yves, big help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To

"manage.py" command not found

2011-08-30 Thread Phil
Hi, I'm running the latest django 1.4 alpha from the repository. I have a django project hosted on bitbucket, I run the bitbucket "clone" command and pull down my code onto my server. But when I go into my project folder and run the command... "./manage.py runfcgi method=threaded

Re: login auth issue - beginner

2011-08-20 Thread Phil
Thanks for reply. Yes my form is using POST. Here is my template file... {% block content %} {% if form.errors %} Sorry, that's not a valid username or password {% endif %} User name: Password: {% endblock %} -- You received this message because

login auth issue - beginner

2011-08-20 Thread Phil
rgs) File "/home/phil/mydev/projects/healthapp/../healthapp/views.py" in login 16. username = request.POST['username'] File "/usr/local/lib/python2.7/dist-packages/django/utils/datastructures.py" in __getitem__ 256. raise MultiValueDictKeyError("Key %r not found in

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
thanks Javier. On Jul 20, 8:13 pm, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Wed, Jul 20, 2011 at 2:02 PM, Phil <phil...@gmail.com> wrote: > >            "host" => "my ip address", > > sometimes flup (and other fastcgi launchers) bi

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
r/bin/python" ) } ## Warning this represents a security risk, as it allow to execute any file ## with a .pl/.php/.py even outside of /usr/lib/cgi-bin. # cgi.assign = ( # ".pl" => "/usr/bin/perl", # ".php" => "/usr/bin/php-cgi"

Re: get django/lighttpd "hello world" page

2011-07-20 Thread Phil
if I can get a standard HTML to display on port 80 with lighttpd does that still mean I have to use a different port for fcgi? On Jul 18, 10:59 pm, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Mon, Jul 18, 2011 at 4:55 PM, Phil <phil...@gmail.com> wrote: > > I

Re: get django/lighttpd "hello world" page

2011-07-18 Thread Phil
Thanks for reply. Yeah I seen that, I did run "./manage.py runfcgi method=threaded host=my ip address port=80" in my mysite directory but am still getting a "not found" page. On Jul 18, 10:41 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > Op maandag 18 juli 201

get django/lighttpd "hello world" page

2011-07-18 Thread Phil
Hi, I have an ubuntu server, django is fully installed and working, lighttpd is installed and working(works with standard html page), but I am not sure how to get them talking to each other? It is my first time putting a django site onto a live server so any help is appreciated. I'm used to a

Re: error on django-admin.py startproject

2011-07-07 Thread Phil
o desthuilliers <bruno.desthuilli...@gmail.com> > wrote: > > > > > > > > > On Jul 3, 5:46 pm, Phil <phil...@gmail.com> wrote: > > > > Thanks for all the comments everyone, it's a great help. > > > > Yes I have more than one python ins

Re: error on django-admin.py startproject

2011-07-03 Thread Phil
no.desthuilli...@gmail.com> wrote: > On 2 juil, 21:57, Phil <phil...@gmail.com> wrote: > > > When I type "import functools" into the python > > interpreter I get no errors back either. I can't make it out. > > see my other answer - either you're not invoking the

Re: error on django-admin.py startproject

2011-07-02 Thread Phil
Well I already have subversion installed, that's how I got django in the first place. When I type "import functools" into the python interpreter I get no errors back either. I can't make it out. On Jul 2, 7:31 pm, ravinder singh wrote: > @ >   plz try this >     sudo

error on django-admin.py startproject

2011-07-02 Thread Phil
Hi, I recently installed the latest development version of Django from subversion. I followed all steps on site, got no errors. When I type "import django" in Python interpreter I get no errors. But when I try run "django-admin.py startproject mysite" I get the following error... "ImportError:

Django 1.3 class based generic views queryset

2011-02-09 Thread Phil M
I'm currently having a problem with DetailView based views and querysets being cached. If I use a custom manager function for the DetailView queryset, such as SampleModel.objects.published() below, the first request caches the queryset and any objects added after are inaccessible - the queryset

Re: 32-bit integers IP address to 4-octet IP address

2011-01-23 Thread phil...@bailey.st
? Thanks again, Phillip On 01/23/2011 07:18 PM, aledr wrote: > I guess socket.inet_ntoa is enough for what you need. > > On Sun, Jan 23, 2011 at 7:06 AM, Phillip Bailey <phil...@bailey.st> wrote: > > > Dear All, > > I've started playing around with Django

Re: Setup issue

2011-01-16 Thread Phil
Thanks for reply Mike and TheRedRabbit, unfortunately I have never got to try your suggestions. Before your response came in I tried upgrading Lucid Lynx to Maverick Meerkat and lets just say it didn't go well for me, I no longer have Linux installed on my laptop so am back in Windows :( to be

Re: Setup issue

2011-01-04 Thread Phil
Hi Shawn, When it wasn't working I tried both from command line and from interpreter, from command line just says "command not found". No I wasn't calling the project that, I've tried a few different project names and none seem to work. Thanks for advice/ tips. I'll keep posted when I get to the

Setup issue

2011-01-04 Thread Phil
Hi all, I am having a setup issue on my personal laptop, I got through setup and couple of tutorials on my Mac in work but not having any joy at home. I'm running Ubuntu 10.04 Lucid Lynx. I run "import django" and I don't get any errors back so I thought I was OK, but when I run "django-admin.py

Re: Unit test failing when testing post of a comment

2010-11-14 Thread Phil Gyford
of these, and using empty strings if they're not present, has got things working again. On Thu, Nov 11, 2010 at 5:30 PM, Phil Gyford <gyf...@gmail.com> wrote: > Hi, > > I have a unit test that tests that a comment can be posted on an entry > in a Django blog. Posting a comment myself in the

Unit test failing when testing post of a comment

2010-11-11 Thread Phil Gyford
Hi, I have a unit test that tests that a comment can be posted on an entry in a Django blog. Posting a comment myself in the browser works fine, but the test always fails with this error: "TemplateSyntaxError: Caught VariableDoesNotExist while rendering: Failed lookup for key [request] in

Re: What does an ideal django workflow setup look like?

2010-10-22 Thread Phil Gyford
After reading a few articles on this kind of thing, I tried to figure out a good, repeatable way to do some of this, and wrote up the whole process here: http://www.gyford.com/phil/writing/2010/09/29/django-environment.php It doesn't (yet) cover the best ways of integrating dev/production

Re: trouble creating first project

2010-10-12 Thread Phil
), but I'm not sure what "/usr/local/bin" is supposed to point to or what path should this be exactly? On Oct 11, 6:20 pm, Steve Holden <holden...@gmail.com> wrote: > On 10/11/2010 1:47 AM, Phil wrote:> Hi, > > > I am having trouble creating my first project. I am runni

trouble creating first project

2010-10-10 Thread Phil
Hi, I am having trouble creating my first project. I am running the latest version of Ubuntu and I installed Django from svn, when I run 'import django' i get no errors back so I assume its installed OK. When I run 'django-admin.py startproject myproject' I get back an error saying

Re: Customising comment framework and keeping moderation working

2010-10-06 Thread Phil Gyford
and tentatively re-opened it with an explanation: http://code.djangoproject.com/ticket/12812 I'm going to have to move on though and try and work around the problem for now as this frustration is doing me no good at all :( Phil On Wed, Oct 6, 2010 at 9:06 AM, Klaas van Schelven <klaasvansc

Re: Customising comment framework and keeping moderation working

2010-10-05 Thread Phil Gyford
to either customcomments/forms.py or customcomments/models.py then comments are *always* allowed through. Any idea why? Thanks. On Tue, Oct 5, 2010 at 2:46 PM, Phil Gyford <gyf...@gmail.com> wrote: > I've investigated further and... it's very strange. > > I've got a version of my

Re: Customising comment framework and keeping moderation working

2010-10-05 Thread Phil Gyford
just want to understand the solution now! Any help very much appreciated. On Tue, Oct 5, 2010 at 11:27 AM, Phil Gyford <gyf...@gmail.com> wrote: > Hi, > > I can't get my extended version of django.contrib.comments to take > notice of moderation. > > If I use the standard co

Customising comment framework and keeping moderation working

2010-10-05 Thread Phil Gyford
, in case it helps: http://dpaste.com/253308/ It works fine like that, with the standard framework, but if I switch the import lines over, add my custom comments app to INSTALLED_APPS and COMMENTS_APP settings, the enable_field has no effect. What's the magical missing step? Thanks. Phil

Re: Error configuring Django to run customized comments framework

2010-10-02 Thread Phil Gyford
A bit late, so you may have solved this or given up on it, but still... I just had the same error message and eventually solved it by changing the order of my INSTALLED_APPS. So maybe you have slightly different settings on your local and live servers, and the apps are ordered differently on each?

Re: Multiple URLs, Common View

2010-07-22 Thread Phil Edwards
I wanted. Thanks again folks! -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0xDEF32500 -- 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

Re: Multiple URLs, Common View

2010-07-18 Thread Phil Edwards
On 18/07/2010 23:55, Phil Edwards wrote: -begin- def servePage(request): if request.path[1:] == '': thisPage = Page.objects.get(name = unicode('home')) else: thisPage = Page.objects.get(name = unicode(request.path[1:])) sidebar_list = Page.objects.filter(category = thisPage.category

Multiple URLs, Common View

2010-07-18 Thread Phil Edwards
spectively, depending upon which machine I have my USB stick plugged into at the time. -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0xDEF32500 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

  1   2   3   >