Re: Using DISTINCT on related model fields

2012-01-10 Thread John
I found a solution from the annotate docs: A.objects.values('b__name').distinct() tada! hope this helps someone else later :) On Jan 10, 3:43 pm, John wrote: > I'm trying to express this query using the Django ORM: > > SELECT DISTINCT test_b.name FROM test_a LEFT JOIN

Near term disadvantages of Django+Python 3 stack?

2013-01-10 Thread John
near future discover that 75% of the plugins which I might find useful will not yet be ported over for some time? Are there any other gotchas that might make me want to stay with Python2.7 stack for a site I'll be building in a 6 month window? thanks! John -- You received this message becau

Re: "Principle of least privilege" in accessing a DB from an app

2013-01-14 Thread John
of another way to deal with the threat that I think you are trying to mitigate, but it would be interesting to see if anyone has any other ideas. John On 14/01/13 14:41, Isaac Perez wrote: > Hi Tom, > > my main goal is to avoid that the access to the users table by > anything else other

Re: where the syntax error?

2013-01-14 Thread John
On 14/01/13 20:39, Érico Oliveira wrote: > class Imovel(models.Model): > disponivel = models.BooleanField(choices=DISPO) > data_venda = models.DateTimeField(auto_now_add=True, blank=True) > > def validaData(self): > if self.data_venda < datetime.now - timedelta(days=2) <- >

Re: Update / collectstatic / loadfixtures automation

2013-02-03 Thread John
I do echo yes | ./manage.py collectstatic which I'm sure you can adapt for your script. John On 03/02/13 16:02, Thiago Carvalho D' Ávila wrote: > Hello, I made a little script for automation for when I update my site > on production, it is like: > > update.

Re: first steps with django

2013-03-24 Thread John
On 24/03/13 15:26, Shawn Milochik wrote: > On Sun, Mar 24, 2013 at 11:21 AM, Jeffrey Black > wrote: >> Give this a look first. >> >> http://www.jeffknupp.com/blog/2012/10/24/starting-a-django-14-project-the-right-way/ >> >> jb > That's a good post. I give a hearty +1 to virtualenv, South, Fabric,

django+virtualenv+git(hub)

2013-03-30 Thread John
velop-eggs .installed.cfg # Installer logs pip-log.txt Is that a recommended setup/logic? Thank you John -- 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

request.FILES empty, I think I am doing everything correctly

2013-04-04 Thread John
This is Django 1.5 Python 2.7.3 MYSQL Database Here is the model that I am using: class SupportingDocument(models.Model): """Defines an archived attachment.""" provision = models.ForeignKey(Provision, null = False, blank = False) submitted_by = models.CharField(max_length = 64, nul

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread John
I haven't been able to get the uploaded file to do anything with. On Thursday, April 4, 2013 5:38:58 PM UTC-4, John wrote: > > This is Django 1.5 > Python 2.7.3 > MYSQL Database > > Here is the model that I am using: > > class SupportingDocument(models.Mo

Re: request.FILES empty, I think I am doing everything correctly

2013-04-05 Thread John
Oh, and thanks for the input on the csrf token. I just moved up to Django 1.5 and was responding to the change about the csrf token no longer being enclosed in a , I thought that might have something to do with the problem. On Thursday, April 4, 2013 5:38:58 PM UTC-4, John wrote: > > T

Django 1.4.4 HttpResponseRedirect to a PUT causing a second PUT?

2013-05-12 Thread John
I have an endpoint for renaming an object. After the update occurs, the view function returns an HttpResponseRedirect to redirect the client to the restful endpoint now representing that object (since it has been renamed). The update is a PUT. I expect the 302 redirect to cause my browser to i

Re: Calling ffmpeg doesn't work on apache server

2013-06-19 Thread John
se it does look like permissions, or running in the wrong directory, or such like. John On 20/06/13 00:48, Chad Vernon wrote: > One last observation: > > I think it has something to do with the apache user permissions. I'm > running the mod_wsgi daemon process with myself as the

Re: django graphics

2013-07-09 Thread John
On 09/07/13 14:30, amanjot kaur wrote: > Please suggest me some module/library in django to plot graphs which > takes input from user. -- Amanjot, There are many python plotting libraries. I usually use matplotlib because my plots tend to be quite technical. John -- You received this m

Re: Creating a Node in Django ORM

2013-07-09 Thread John
Nafiul, Either dig into the django-mptt code and pull out the bits you need, or look at MPTT and roll your own. http://www.sitepoint.com/hierarchical-data-database-2/ has a reasonable explanation (with code written in some archaic script ;) ) of how MPTT works. John On 09/07/13 14:26

Re: Creating a Node in Django ORM

2013-07-09 Thread John
lds/#django.db.models.ForeignKey.related_name because you will need to use the related_name attribute to make the foreign key relationships distinct from each other. You will also need a List object that holds the head (and perhaps tail) pointers for the list. John -- You received this message bec

Re: django graphics

2013-07-09 Thread John
le location/URL rather than hard-coding the paths and URLs. I would also run some periodic background clean up function to get rid of old plots otherwise they will steadily use more disk space. Hope that helps. Let the list know if it works! John -- You received this message because you are sub

Re: Chapter 5 problems

2013-07-12 Thread John
'NAME' doesn't look like a path to a sqlite database file. I'd expect it to look more like: 'NAME': '/home/dj/mfp/mysite/mydb.db' John On 12/07/13 19:33, Randy Baxley wrote: > randy@randy-Inspiron-530s:~/dj/mfp/mysite$ python manage.py shell >

Re: Chapter 5 problems

2013-07-12 Thread John
Can you open the file using sqlite on the command line: # sqlite3 /home/dj/mfp/mysite/mydb.db John On 12/07/13 21:08, Randy Baxley wrote: > permissions for randy on mydb.db are read and write. > > > On Fri, Jul 12, 2013 at 3:05 PM, Jonathan Baker > mailto:jonathandavidba...@gmai

Re: image rendering on the template

2013-07-13 Thread John
n this list for matplotlib in the last week. John -- 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 to

Re: image rendering on the template

2013-07-18 Thread John
I don't use the web version; I use the mailing list, so don't have a link to send. My message was sent at Date: Tue, 09 Jul 2013 15:58:45 +0100 and entitled Re: django graphics. John On 15/07/13 17:20, sahitya pavurala wrote: > Hi john , > > > I searched for what you to

Re: Custom User model admin log always adds Changed password record

2013-11-04 Thread John
I noticed if I comment out the line password = ReadOnlyPasswordHashField() in admin.py that I no longer run into this issue when saving, but then the field becomes editable and shows the hash. # appname/models.py from django.db import models from django.contrib.auth.models import ( BaseUser

Admin page select boxes smashed

2011-05-05 Thread John
Hi there, I am working on a project to track servers, filesystems, and space allocations using django. I have been testing the project using eclipse on windows and the command line on a linux server, where it will ultimately reside. I am having a problem with the select boxes and textareas on the

Re: Admin page select boxes smashed

2011-05-05 Thread John
; > On 5 May 2011 18:41, John wrote: > > > > > > > > > > > Hi there, I am working on a project to track servers, filesystems, and > > space allocations using django. I have been testing the project using > > eclipse on windows and the command line o

Re: Admin page select boxes smashed

2011-05-18 Thread John
May 5, 2:40 pm, John wrote: > I have tried chrome, firefox and ie on both versions. They all work > perfectly on the windows instance and aresmashedon the linux > instance. I haven't tried changing theadmincss files yet, they are > the same on the linux and windows installs.

mach-o, but wrong architecture

2011-06-23 Thread John
O.K. I know that there are a lot of suggestions out there for this problem, I think I have tried all of them but I am still getting the dreaded error in the subject line loading the MySQLdb module. Everything was working fine, but I was having problems with a LocMemCache so I decided to upgrade f

Re: mach-o, but wrong architecture

2011-06-24 Thread John
ase excuse any typos > > On 23 Jun 2011, at 22:00, John wrote: > > > > > O.K.  I know that there are a lot of suggestions out there for this > > problem, I think I have tried all of them but I am still getting the > > dreaded error in the subject line loading the M

Re: mach-o, but wrong architecture

2011-06-24 Thread John
MySQL package versioning). But with MacPorts, you end up building > MySQL itself for your architecture, rather than the fat binary > packages which mysql.com provides. > > > > > > On Thu, Jun 23, 2011 at 5:00 PM, John wrote: > > O.K.  I know that there are a lot of sugg

Re: mach-o, but wrong architecture

2011-06-24 Thread John
I think I am still missing something, guess I am not overly familiar with the Port syntax. I have python2.7 installed, but not using Port, I get this problem if I try and select python27, it seems like a chicken and egg situation John-Paynes-MacBook-Pro:~ jpayne$ sudo port select python python27

Thread lifetime in Django/Apache environment

2011-07-06 Thread John
In my application I need to be able to overlap some processing, collecting summary information from the database between HTTP requests. If I start a thread and then return a HTTP response I presume that the process that was serving the request will continue until the thread completes. This makes i

Improperly Configured Remote User Middleware

2011-07-20 Thread John
I am trying to get sso working with apache and Django. I have the REMOTE_USER being filled correctly with mod_auth_kerb, and I followed the simple directions listed at https://docs.djangoproject.com/en/dev/howto/auth-remote-user/ in an attempt to enable Django's REMOTE_USER authentication. I am ab

Re: Improperly Configured Remote User Middleware

2011-07-20 Thread John
 pm, John wrote: > I am trying to get sso working with apache and Django. I have the > REMOTE_USER being filled correctly with > mod_auth_kerb, and I followed the simple directions listed > athttps://docs.djangoproject.com/en/dev/howto/auth-remote-user/ > in an attempt to enable Djang

Re: Improperly Configured Remote User Middleware

2011-07-27 Thread John
Just some further info for anyone who may come across this in the future, this happened to me a few more times. After the third time it happened I was hitting my head against the wall and finally noticed a simple error in a signal handler I was importing into models.py. After fixing that bug the co

Re: Improperly Configured Remote User Middleware

2011-07-27 Thread John
I did check here before posting, clearly not well enough, but I was mostly googling for django improperly configured remote user and similar stuff. Thanks for the link to the bug. It looks like it was fixed, but not committed. On Jul 27, 7:56 pm, Karen Tracey wrote: > Did you try searching this l

search with a optional value

2011-08-16 Thread john
hi, i have a form with few fields as optional,i.e can be left blank, i want to search my db for values i receive from this form, how should i go on about writing my filters when some of values can be " ". any reference is kindly appreciated -- You received this message because you are subscribed

Error 'long' has no attribute provision

2011-01-19 Thread John
Background: In a financial application I need to archive a set of reports at the end of each reporting period, the model is reasonably complex but I have 3 models of direct concern, a 'provision', 'period' and 'reportheader'. The code is correctly generating the reports and they are archived in a

Re: Error 'long' has no attribute provision

2011-01-19 Thread John
details of python/django. I did simplify the code slightly, the exception handling is a little better than the code that I posted in that it returns an error response, but thank you for the advice. On Jan 19, 12:38 pm, Łukasz Rekucki wrote: > On 19 January 2011 18:06, John wrote: > >

Django for backend and frontend

2015-01-25 Thread john
has a nice and simple design and should be fast and user friendly. Thank you for your help. Cheers, Xiangyu John Wu Founder of Career Harbour Ltd www.facebook.com/careerharbour -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

PermissionError with open()

2015-02-02 Thread John
Hello everyone, I am trying to run this code inside view.py, to make PDF file able to be downloaded : > import os > BASE_DIR = os.path.dirname(os.path.dirname(__file__))def > download(request, file_name = 'article1'): > file = open(os.path.join(BASE_DIR, > 'media').replace('\\','/'

Re: what do you think about django FORM system?

2015-03-06 Thread john
I can tell you what I found to be hard to understand (and I don't think I do understand at the moment) that is how to set the HTML, the types, ID, and any of the special attributes of the object. I understand that I can sub-class but it's also my understanding that I shouldn't have too. For e

Re: what do you think about django FORM system?

2015-03-06 Thread john
ote: So you're problem is not about forms but widgets. The widget are the object that render a field form. You can subclass it to render it in anyway you want. What do you don't like in subclassing a widget/model ? On 03/06/2015 03:38 PM, john wrote: I can tell you what I found to be

Re: what do you think about django FORM system?

2015-03-06 Thread john
t's just a few chars the user is going to enter. But I need to provide an ID, a SIZE, a few things - where is that info and where are the examples? Maybe I missed them? I've been know to mis-read stuff. Johnf On 03/06/2015 07:12 AM, felix wrote: El 06/03/15 09:38, john escribi

Re: what do you think about django FORM system?

2015-03-06 Thread john
ded (and all in one doc - not link after link after link). Maybe what I'm asking for is for the tutorial to better explain the use and ways to mod the form code to get things done. Johnf On 03/06/2015 08:02 AM, felix wrote: El 06/03/15 10:20, john escribió: OK I realize you are saying I sh

Re: what do you think about django FORM system?

2015-03-06 Thread john
On 03/06/2015 12:28 PM, felix wrote: I'm using Django 1.9 and Bootstrap v3.3.1 I did know there was a Django 1.9 I tried several ways but whatever I was doing the form field size did not change for me. But I started using crispy-forms and using their layout stuff allowed everything I ne

Re: Existing database - new project

2015-03-06 Thread john
I'm not sure this is of help but I took was the easy way out. In my models.py for each of my models.Model I added Class Meta: managed = False That worked for me - the existing database tables were not touched. Johnf On 03/06/2015 01:18 PM, Robert Daniels wrote: I understand it is possible

Re: Django template not displaying

2015-03-12 Thread john
You have two 'home' functions in views.py. You have an indent on the first line of the urls.py (could be the paste) You did not provide the forms.py Johnf On 03/12/2015 01:31 AM, sourav mohanty wrote: I dont know why but i'm facing a strange problem.. My templates just wouldn't load or show. c

Re: Django template not displaying

2015-03-12 Thread john
n the browser window and/or runserver console? My suggestion would be to install the django-debug-toolbar, as you can use it to investigate the templates being used by your view and where Django is looking to find those templates. -James On Thu, Mar 12, 20

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread John
Sabine, It is a really Bad Idea to use the postgres user and database for your data. Create a new user and database and use that instead. John On 13/03/15 10:29, Sabine Maennel wrote: > I just switched from Sqlite to postgres. Everything is working except > that when I open PgAdmin I

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread john
Or just keep the database and create a new role with admin (I assume you need that) priv. Johnf On 03/13/2015 04:31 AM, Matthias Müller wrote: I do agree to John. Check out the commands createuser --help and createdb --help Matthias 2015-03-13 12:09 GMT+01:00 John <mailto:john-

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread john
Have you issued the command to create the tables. python manage.py makemigrations python manage.py migrate The above will create what ever tables you have in the models. The actual data that something else? Johnf On 03/13/2015 03:29 AM, Sabine Maennel wrote: I just switched from Sqlite to post

Re: [Python] Problem with arguments given

2015-03-14 Thread John
Dariusz, You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. John On 14/03/15 08:30, Dariusz Mysior wrote: > Mam jeden problem nie wiem dlaczego mam bład > I have p

Re: newbie question

2015-03-20 Thread john
I'm not aware that you can use javascript in views.py. In the Template - I believe you mean. Johnf On 03/20/2015 09:35 AM, David Gleba wrote: Also, I am not an expert in Django yet, but I think you can use html and javascript in views. -- You received this message because you are subscribed

Re: newbie question

2015-03-20 Thread john
Maybe another way to reply to your question is to break down how it would work normally. There are two sides of this question - the server side and the client side. In general client side stuff is done in javascript. Server side requests are done in python. So you have to decide where you want

uWsgi not seeing javascript

2015-04-21 Thread john
Hi, When I use manage.py the javascript runs. When I use uWsgi the javascript does not run. Of course this when I'm using the website. Is there something that is different between the two! Johnf -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: uWsgi not seeing javascript

2015-04-21 Thread john
OK I will - but where? Johnf On 04/21/2015 02:41 PM, Avraham Serour wrote: You probably are not serving the static files, can you post your uwsgi ini ? On Apr 22, 2015 12:02 AM, "john" <mailto:jo...@jfcomputer.com>> wrote: Hi, When I use manage.py the javas

Trying understand static files.

2015-04-22 Thread john
Hi, I have created a website that works well under "runserver". But when I use nginx and uwsgi the basic website comes up but it is missing the static file information. I have run "manage.py collectstatic" but still no static files are used. Reading the Django doc's tells me that I need the

Re: Trying understand static files.

2015-04-22 Thread john
nnanes with Explosion Robinson. On 23 April 2015 at 09:35, john wrote: Hi, I have created a website that works well under "runserver". But when I use nginx and uwsgi the basic website comes up but it is missing the static file information. I have run "manage.py collectstatic&qu

Re: Trying understand static files.

2015-04-22 Thread john
2/2015 04:57 PM, Mike Dewhirst wrote: On 23/04/2015 9:35 AM, john wrote: Hi, I have created a website that works well under "runserver". But when I use nginx and uwsgi the basic website comes up but it is missing the static file information. I have run "manage.py collectstatic"

Re: Trying understand static files.

2015-04-23 Thread john
Thank you very very much! It's no longer black magic. I did not think about the fact that the template just becomes a simple HTML page and the client browser has to get the javascript as requested. Johnf On 04/23/2015 07:35 AM, C. Kirby wrote: Hi John, It can be a little confusing.

Re: Django Migrations - Relation Already Exists

2015-04-23 Thread john
I'm a newbie here so be careful. I believe you can use manage.py migrate --fake That works for me. Johnf On 04/23/2015 11:37 AM, Rick Weinberger wrote: I posted the same question on stack overflow, here: http://stackoverflow.com/questions/29830928/django-db-utils-programmingerror-relation-alrea

Re: Suds

2015-05-03 Thread John
would be better to ask? John On 03/05/15 19:35, nadaei...@gmail.com wrote: > Hi All, > > If i have an wsdl with this parameters and i want to use suds how it > will be? > > *Note:* Before you call this case, you need create the object BaseReq*.* > > > > *Input parame

Re: Kivy and Djangp

2015-05-13 Thread john
Kivy is the client side of the project. Like any client (that includes Kivy) you would use http (that's the normal setup) or maybe pycurl (not to sure pycurl is pure python and you need pure python to work with Kivy) to access the URL (the address of your django URL). On the django side the U

Re: data migrations for large tables on Postgres

2015-05-14 Thread john
As a newbie - would it be better to use pgadmin (or psql) to make the changes and migrate --fake so that Django would be happy? Johnf On 05/14/2015 02:43 PM, Vernon D. Cole wrote: I have learned the hard way this week that data migrations in django 1.8, as wonderful has they are, do not scale.

trouble with creditcard expiry field

2015-05-21 Thread john
Hi, I'm using a module called creditcard.py (to be honest I can't recall where I got it) and it works just great for phones, firefox desktop, chrome desktop with my Django forms. But (of course there is a but) it is not working with the Safari desktop (laptop) 10.9 (mostly likely all version

Re: Where to put wsgi code in Apache in Ubuntu?

2015-07-12 Thread John
If your install of apache is httpd, /etc/httpd/ If is apache2, /etc/apache2/ Under this folder, you may have conf and conf.d directories. You will find the httpd.conf of apache2.conf ;) > On Jul 12, 2015, at 7:54 PM, Christian Kleineidam > wrote: > > The Django documentation >

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread John
try: python manage.py [::]:8001 django will accept any requests on that port (localhost:8001, 127.0.0.1:8001, 192.168.0.102:8001) > On Jul 16, 2015, at 3:26 PM, tdthoma...@gmail.com wrote: > > Sadaf, > > Thanks for your reply. To be clear, my objective is to run tests with other > computers

Re: simultaneously submit three forms on the same page

2014-07-29 Thread John
How can one submit 3 forms simultaneously?? Even ajax, is on by one! Sent from my iPhone > On Jul 29, 2014, at 08:46, Babatunde Akinyanmi wrote: > > Hi Devin, > > On 29 Jul 2014 12:33, "Devin Cky" wrote: > > > > hi i am a beginner in django and I have a problem .. how can I validate 3 > > fo

Django and MySQL, Hibernate

2014-08-12 Thread John
a very good solution for the problem. But i don't know where to put Bens code and how to use it. Can someone point me in a direction! Best regards John -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Rendering XML using XSLT

2014-09-27 Thread John
server, perhaps with some symlinks, so that the overhead of Django is not required at all. John On 27/09/14 12:37, Timothy W. Cook wrote: > Some details I forgot are that this is Django 1.6.4, Python 3.4.1. > The 404 error is on http://192.168.1.9:8080/get_xsd/ccd-description.xsl > > On Sat,

Re: Problem with Pillow image resize and save

2014-10-25 Thread John
m models.py and admin.py shown below should give you all the clues you need. John # # models.py from django.conf import settings from django.db import models from django.db.models import F, Q import os import uuid import subprocess _CONVERT_CMD = '/usr/bin/convert&#x

Re: Problem with Pillow image resize and save

2014-10-25 Thread John
That's a good idea, Aliane. In my case, the server was lightly loaded, the conversion time is very short and the admin was only used by a very small number of users who were sufficiently patient. John On 25/10/14 20:23, Aliane Abdelouahab wrote: > You have to send the picture editing to

pycurl and SSLv3

2014-10-30 Thread john
Hi, On the server side of my Django website I use pycurl (version 7.20.x) to connect to authorize.net (to send credit card info). On Nov 4 Authorize.net will turn off SSLv3. So I'm wondering if my use pycurl will continue to work. To be honest I haven't thought about it much since the pycu

Re: Multiple versions of python on linux server

2014-11-03 Thread John
o wrestle with python package dependency conflicts between your apps, or between an app and the operating system. John -- 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 a

Re: django on ubuntu

2014-11-22 Thread John
Mosharof The standard Django tutorial works fine on Ubuntu. I would advise you, though, to read up on virtualenv and do everything in a virtual python environment. This may avoid a lot of pain with dependencies and is good practice in any case. John On 22/11/14 15:42, Mosharof sabu wrote: >

Re: Adding annotations to raw sql

2014-12-10 Thread john
should that be "t.ct" Johnf On 12/10/2014 03:23 PM, Ruslan Batukaev wrote: Suppose I have the following SQL query: SELECT a.id, ct, 1 as one FROM article a LEFT JOIN ( SELECT article_id, count(distinct(tag)) AS ct FROM article_tag WHERE tag IN ('football', 'te

BPMN2 and Django

2013-12-19 Thread John
integrating Django apps with a workflow engine? Any advice? My particular applications are for relatively low numbers of users (<100) if that makes any difference. Thanks, John -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: STATIC and MEDIA

2014-03-30 Thread John
Hi Julio! Thank u so much! Jonathan Diretor de Tecnologia +55(12)98864-1594 Sent from my iPhone > On Mar 30, 2014, at 13:49, Julio Molina Soler wrote: > > Hi Jonathan, > > the cleanest way I found: > > at the beginning of your settings.py add > > import os > BASE_PROJECT = os.path.dirname(

Re: Django Python

2014-06-08 Thread John
This list is about the use of Django, a python framework for websites. You might get better help using a list which covers python more generally. By the way, your function doesn't need recursion: def foo(n,m): return m*n John On 08/06/14 16:39, Thiago borges dos reis wrote: > I&#x

Re: WSGI question

2016-08-04 Thread John
Hi Jonty, You can only have one version of mod_wsgi installed per apache instance, so you need to uninstall the 2.7 version and install the 3.4 version. On Ubuntu, the libapache2-mod-wsgi-py3 package is what you are looking to have installed. John On 05/08/16 00:37, Jonty Needham wrote: > So

Re: Django Rest Framework inside of Django Project

2016-08-26 Thread John
get a REST interface for an existing (non-REST) project is easy; check out http://www.django-rest-framework.org/. John On 26/08/16 17:07, Sylvain Dégué wrote: > Hi, > > I am building a mobile application and I need a Rest API and a web > version of my app. So I was wondering if I

Re: pymssql

2016-09-09 Thread john
take a look at http://pymssql.org/en/latest/pymssql_examples.html Johnf On 09/08/2016 05:48 PM, sum abiut wrote: Hi, i have used pymssql to connet to windows database but i want to be able iterate and only print out some specific fields. here is what i did conn=pymssql.connect(server,use

Venv

2019-03-30 Thread John
Good evening I've created and activated venv like this: $ python3 -m venv $ source /bin/activate Now Ive ‘deactivate’ the venv How do I re-activate please? 🙏 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Generic display views / DetailView

2019-04-09 Thread John
path('/', ArticleDetailView.as_view(), name='article-detail'), ] Many thanks :) John -- 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-us

Re: Include pictures in content

2017-04-06 Thread john
I normally don't jump into discussions - so I apologize in advance! Try reading this link: https://docs.djangoproject.com/en/1.10/howto/static-files/ Johnf On 04/06/2017 11:50 AM, ard...@dunnsmail.co.uk wrote: Thanks ludovic, I haven't had any success yet, but your answer has led me deeper i

Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread John
all *.pyc files to make sure. John On 27/09/15 18:50, Cai Gengyang wrote: > http://pastebin.com/RWt1mp7F --- If anybody can find any error with > this settings.py file, let me know ! > > Looked through it and can't find any mistakes. The error message I got > was that there is a

Re: Password protect content

2015-11-02 Thread John
This is really cool, something I didn't know existed and something I will use immediately. Thanks. John On 02/11/15 21:59, Russell Keith-Magee wrote: > Hi Andrew, > > On Tue, Nov 3, 2015 at 12:37 AM, Andrew S <mailto:stol...@gmail.com>> wrote: > > Hello, > &g

Re: Django as Server

2016-01-08 Thread John
deploying on production. Hope u get it! Cheers  John > On Jan 8, 2016, at 3:03 AM, Gaurav Jindal wrote: > > This line was written in the 1st tutorial : > "We’re in the business of making Web frameworks, not Web servers." > > Does that mean that Django can

Any Django users based in Chile?

2016-04-07 Thread John
Curious to connect with Django devs in Chile. Hoping to do a Django project with Chilean devs in the coming months and would love to connect a bit more with the Django community there. Drop me a note if you're a Chilean dev floating around in the group. Thanks! -- You received this message

Poor Performance for Form Rendering In Django 1.11

2018-12-07 Thread John
My site has a navbar with an advanced search widget (beside the search field), which renders on every page. For each request, a context_processor creates the form so it can be available on that page in the navbar. This form has about a dozen selects with a total

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread John
mething else must be going on. [image: Screen Shot 2018-12-10 at 8.59.32 AM.png] On Monday, December 10, 2018 at 8:40:51 AM UTC-6, James Bennett wrote: > > On Mon, Dec 10, 2018 at 6:29 AM John Lehmann > wrote: > >> So my takeaway from what you are saying is that no one is

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-11 Thread John
t; > > > > > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *John > *Sent:* Monday, December 10, 2018 9:19 AM > *To:* Django users > *Subject:* Re: Poor Performance for Form Rendering In Django 1.11 > >

Re: Help needed

2021-02-23 Thread John
at is preset to today's date? If it's that, then the next paragraph in the docs explains how to set `default=`. John On 23/02/2021 07:14, neha bhurke wrote: I have created the form this is my views.py. def newdata(request): if request.method =="POST":

Re: Django blog post not linking to detail.html page

2020-01-19 Thread John
/mysite/blog/urls.py, line 2 is bad syntax and should probably read: from .views import * You should also be seeing some kind of error from your webserver (are you running the site using runserver first?) which would give you a clue where the problem is. John On 19/01/2020 16:03, amanda

Re: Django blog post not linking to detail.html page

2020-01-20 Thread John
e the Django by Example book. Perhaps you should check with that? The error messages tell you which line the error is on. John On 20/01/2020 05:54, amanda wrote: Hi John, Thank you! I config setting DEBUG = True, but my webserver does not display any error message. i use pythonanywhere host, i d

is there a WYSIWYG for Django

2020-02-08 Thread john
Hi, I realize that Django does not have a frontend but is there a tool/package that works well for WYSIWYG a simple website? Johnf -- 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

Re: is there a WYSIWYG for Django

2020-02-08 Thread john
Thanks - that was very helpful - but of course so were the personal suggestions. Johnf On 2/8/20 4:42 PM, Jason wrote: Anytime you have a question of "is there something in django that will do X?", check out https://djangopackages.org/ For example, there is a pretty good up to date WYSIWYG ca

Re: File upload progress bar for Django?

2008-10-21 Thread john Moylan
There are working examples around. Basically get your server to report the upload status to a javascript ui at intervals. Try searching the djangoproject trac server - there is a link from there to a django uploader project on google code that I have used in the past. I think it uses JQuery. I'd s

Re: Mercurial or Git

2008-10-22 Thread john Moylan
You can already use git with an SVN server 2008/10/22 Rit Lim <[EMAIL PROTECTED]> > > which one is the Django community moving toward to, mercurial or git? > if Django is to be moved... > > > --~--~-~--~~~---~--~~ You received this message because you are su

multiple models in object_list

2008-11-04 Thread John M
ategories {% for cat in category_list %} {{ cat.name }} {% endfor %} but the category's never get shown. Thoughts? Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: multiple models in object_list

2008-11-04 Thread John M
Thanks for the info. Turns out that I was looking at the wrong bit of code (gr), and wasted 2hrs of my day. John On Nov 4, 2:36 pm, "Matías Costa" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 8:37 PM, John M <[EMAIL PROTECTED]> wrote: > > > I&#x

Design question : best way to show 1 .. N different categoried items

2008-11-04 Thread John M
. I'd like to then group the bullet points for each category on the site. Your help is appreciated. John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

<    1   2   3   4   5   6   7   8   9   10   >