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 subscribe

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 fol

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: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 Sun, Aug 19, 2012 at 3:19 AM, phil archambault > > wrote: > > > > > > On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > >> > >> > >> > >> On Saturday, August 18, 2012 5:32:26 PM U

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

2012-08-18 Thread phil archambault
python 'site-packages'. ?? > > On Sun, Aug 19, 2012 at 3:19 AM, phil archambault > > wrote: > > > > > > On Saturday, August 18, 2012 5:46:53 PM UTC-4, phil archambault wrote: > >> > >> > >> > >> On Saturday, August

Having LiveServerTestCase use same database as tests

2012-08-21 Thread Phil Gyford
ment) to create data 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

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 Markdown

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 wrote: > Hi Phil, > > incidentally, I was looking at this just

Re: Having LiveServerTestCase use same database as tests

2012-10-21 Thread Phil Gyford
-- Forwarded message -- From: Дмитрий Белавенцев 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 UTC

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
tead of > django-admin ? > > Regards, > Xavier Ordoquy, > Linovia. > > Le 15 déc. 2012 à 15:38, Phil a écrit : > > 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

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
er" because your > local directory isn't in your paths. > > Regards, > Xavier Ordoquy, > Linovia. > > Le 15 déc. 2012 à 16:14, Phil Brant a écrit : > > I tried "manage.py runserver 8080" there just get "command not found". > I've never do

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 wrote: > > On Dec 15, 2012 11:30 AM, "Phil" wrote: > > > > Hi, > > > > I had django setup and working for over a year now working with it on > and off. I was away fo

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
2012 at 4:25 PM, Dev wrote: > Run from command line: > "python manage.py runserver" > > Also i guess you are getting an import error because your 'path > environment variable' doesn't contain the path of the directory of your > project. > > Sen

How best to cache a queryset of Comments?

2013-03-14 Thread Phil Gyford
om/django/django/blob/stable/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 i

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 Kak

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. http://bailey.st/blog/2012/02/22/bits-of-python-import-a-csv-file-into-a-m

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: 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: 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: 32-bit integers IP address to 4-octet IP address

2011-01-23 Thread phil...@bailey.st
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I aledr, thanks for your reply, I've added the socket.inet_ntoa to my view.py #view.py from django.http import HttpResponse import socket from snort.models import Iphdr def snort(request): ip = Iphdr.objects.values("ip_src") return so

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 ge

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

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

2014-12-06 Thread Phil F
dels.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-use

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 Henr

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 simp

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 login

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, > > Phillip &

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 Error

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

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 ch

Displaying single-line progress while a management command runs

2016-05-09 Thread Phil Gyford
g tests and when running the task scheduled? I can't be the first to have wanted 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 em

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

2016-05-23 Thread Phil Gyford
l. 14.23 skrev Phil Gyford : > > > > 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 over an hour, depending on the > quantity. > &g

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 working

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 Django

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 ma

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 always

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

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

2020-02-13 Thread Phil Kauffman
> and especially 3, but you have to learn how to use the framework, 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

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 wan

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 List(Lis

Re: understanding urls, forms, and HTTP ERROR 405

2020-02-20 Thread Phil Kauffman
can think of any posts or examples 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 re

<    1   2   3