Re: Debugging Django using Pycharm

2015-09-15 Thread Nick Sarbicki
her debug tool that too ok for me. > > Thanks and Regards, > > Prabhu Have you installed the community (free) version or the professional? The community version doesn't support Django, although it is still worth using. - Nick. - Nick On Tue, Sep 15, 2015 at 8:03 AM, Prabhu wr

Re: Best Django Open Source Project for Intermediate Django Learners

2015-09-01 Thread Nick Sarbicki
ps.google.com/d/msgid/django-users/d1ae4ad3-434a-461c-99b4-150aad26ccfd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- - Nick -- You received this message because you are subscribed to the Google Groups &

.get() has unexpected behaviour on a queryset after previously applying .order_by().distinct()

2015-04-15 Thread Nick Smith
>>> from django.db.models import models >>> class MarketPrice(models.Model): market = models.CharField(max_length=30) crop = models.CharField(max_length=30) price = models.PositiveSmallIntegerField() date = models.DateField() def __str__(self): r

Re: Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
value instead of the cookie value (I've AJAXed many forms and have never dealt with a CSRF cookie). Also, does the form work if you don't send it via AJAX and just do a normal POST/GET from the browser? -Nick On Wednesday, April 9, 2014 5:59:37 PM UTC-7, John Fabiani wrote: > > I h

Fwd: Moving from 1.2 to 1.6

2014-04-09 Thread Nick Santos
per valuable in tracking down the error. -Nick On Wed, Apr 9, 2014 at 4:00 PM, John Fabiani wrote: > Do you guys think is possible the jQuery Form plugin is some how > interfering with the token? > > Johnf > > On 04/09/2014 02:18 PM, John Fabiani wrote: > > The code looks gr

Re: A subprocess call fails, but only under Django

2014-03-11 Thread Nick Santos
would fail, even with copy on write, with certain OS settings - I'm far from an expert in this area). Have you tested this code on another machine to see if it exhibits the same behavior? -Nick On Tue, Mar 11, 2014 at 5:07 PM, Shawn Milochik wrote: > Hi Russ, thanks for the reply. > &g

Re: Gunicor + Postgres + Python 3

2014-03-09 Thread Nick Santos
Hey Henrique, Can you send the code for the view that generates the page? -Nick On Sun, Mar 9, 2014 at 9:14 PM, Henrique Oliveira < henriqueollive...@gmail.com> wrote: > Hi there, > > I have set Django + gunicorn + python 3 in a production env, but I am > gettin critical

Re: DDT not showing

2014-03-09 Thread Nick Santos
Since you didn't say that you have - did you add it to your INSTALLED_APPS? -Nick On Sun, Mar 9, 2014 at 12:03 PM, Aiden wrote: > Hi all, > > Banging my head against a wall trying everything to get DDT to appear > using Gunicorn+nginx > I have the following: > > DEB

Re: Django Windows Install Issues

2014-02-25 Thread Nick Santos
nstall Django. Also, I'd highly recommend you install a package manager like "pip", which will make future installs much easier. -Nick On Tue, Feb 25, 2014 at 1:23 PM, Joe Buty wrote: > Hello, I am having trouble getting Django to work. I have installed python > and download

Re: virtualenv on Windows

2014-02-03 Thread Nick Santos
FYI, virtualenvwrapper was ported to windows: https://pypi.python.org/pypi/virtualenvwrapper-win It works seamlessly like the linux/OSX versions -Nick On Mon, Feb 3, 2014 at 3:10 PM, Mike Dewhirst wrote: > Michel > > I learned quite a lot and appreciate it greatly! > > Th

Re: Need some advise on how to use a RESTful API

2013-12-20 Thread Nick Apostolakis
Hello there, In my point of view, when you develop an app using a rest full api you go through the same moves as when writing the web app using the native interface. In my case I have created both. I wrote first the web interface and then the api, but a different approach would be to write first th

Re: How do I test my Django App on my Phone

2013-12-09 Thread Nick Santos
hine in its firewall. Then determine that machine's public IP address (eg 1.2.3.4) and enter that into your browser as 1.2.3.4:8000. Then it should come up on your phone. -Nick On Mon, Dec 9, 2013 at 10:44 AM, Muhammad Ali wrote: > Hello, > > I'm developing a Django-pow

Re: To Django or not to Django

2013-11-24 Thread Nick Santos
more tightly integrated than a CMS, then django could be a good option for you. -Nick On Sun, Nov 24, 2013 at 10:37 AM, wrote: > Hi, > I'm looking to build a contest website where there would be a challenge > every so often where people need to post a video or a picture. Then all

Re: Google Maps with Routes

2013-11-10 Thread Nick Apostolakis
Στις 10/11/2013 01:19 μμ, ο/η Vibhu Rishi έγραψε: Hi Nick, I am not sure if openstreet will solve my purpose. What I have in mind is that when someone is planning a trip , he can enter the route details in the trip info. This should give the approximate distance etc. ( btw bike = motorcycle

Re: Google Maps with Routes

2013-11-09 Thread Nick Apostolakis
discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAPiONwnuV6vDGtkuK%2BfNyNePd0rOdO0gsxGQ-URoQ_iu8%2BcioQ%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- ---

Re: Registration in django

2013-10-16 Thread Nick Apostolakis
Just my 2 cents, it may suit your needs too -- ------ Nick Apostolakis Msc in IT, University of Glasgow e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -

Re: 403 Forbidden messages when saving items in django-admin

2013-10-06 Thread Nick Apostolakis
Ask if Apache mod sec is installed on the server If it is it can account for a lot of weirdiness Στις 06 Οκτ 2013 7:48 μ.μ., ο χρήστης "Alban Hertroys" έγραψε: > > On Sunday, October 6, 2013 6:09:22 PM UTC+2, אברהם סרור wrote: >> >> > You don't have permission >> the error seems to be fairly desc

Re: [django-announce] [ANNOUNCE] Security releases issued -- vulnerability in the wild

2013-09-15 Thread Nick Apostolakis
Thanks a lot for your answer -- -- Nick Apostolakis Msc in IT, University of Glasgow e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are s

Re: [django-announce] [ANNOUNCE] Security releases issued -- vulnerability in the wild

2013-09-15 Thread Nick Apostolakis
1.3.x affected by this vulnerability? Thank you -- ------ Nick Apostolakis Msc in IT, University of Glasgow e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -

how to turn off logging debug to be printed in apache's error log when django's DEBUG=False

2013-09-09 Thread Nick Jiang
I have set a debug logger to print debug infos to console. This works fine in development environment. But in production, debug info redirect to apache error log file, i guess this is one behaviour related to mod_wsgi. People say there's a setting control in django 1.5 version, but how can i tu

Re: Complex query

2013-09-08 Thread Nick Apostolakis
able since it cannot limit the number of related objects. It looks like you are looking for a subquery maybe this will be useful http://stackoverflow.com/questions/8217490/query-of-a-subquery-in-django -- -- Nick Apostolakis

Re: Get a list into request.POST

2013-08-23 Thread Nick Jiang
hi, you should consider of using JSON.stringify() function to convert javascript object to json data. *>>* * JSON.stringify({'array':[{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}]}) * **This is example build from jsfiddle *>> alert example

Re: Django: Temporary "wait page" while heavy compute processing is handled

2013-08-12 Thread Nick Santos
ind for me. Also, just as an FYI, your links won't work because they point to your local development server and can't be accessed by anyone else. -Nick On Mon, Aug 12, 2013 at 8:49 AM, Julio Molina Soler wrote: > Hi Howard, > > I'm not very experience with django y

Re: problem with deploying django using mod wsgi

2013-08-07 Thread Nick Dokos
e number of messages logged to the error_log. | # Possible values include: debug, info, notice, warn, error, crit, | # alert, emerg. | # | LogLevel warn ` -- Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: PDF generator in Django

2013-08-05 Thread Nick Apostolakis
Hello there, I have used the report lab library with good results for simple PDF with tabular data On 5 Aug 2013 16:27, "graeme" wrote: > I recently used Latex and it worked fairly well. > > I had to write a little function to escape latex special characters, and > you have to be a bit careful wi

Re: Foreign Key problems with legacy database

2013-07-23 Thread Nick Dokos
ls.Model): >    id = models.IntegerField(primary_key=True) >    songid = models.Integerfield() >    song = ForeignKey('Song', db_column='songid') > class Song(models.Model): >   id = models.IntegerField(primary_key=True) >

Re: Return 2 values

2013-07-08 Thread Nick Apostolakis
7;t affect your url.py http://stackoverflow.com/questions/4651172/reference-list-item-by-index-within-django-template -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web

Re: Return 2 values

2013-07-05 Thread Nick Apostolakis
On 05/07/2013 02:27 μμ, Nick Apostolakis wrote: You should be fine everything is an object so you can hold different datatypes in a list As a reference, check this out http://zetcode.com/lang/python/datatypes/ in the tuple and lists section and this http://stackoverflow.com/questions

Re: Return 2 values

2013-07-05 Thread Nick Apostolakis
You should be fine everything is an object so you can hold different datatypes in a list Στις 05 Ιουλ 2013 1:26 ΜΜ, ο χρήστης "Hélio Miranda" έγραψε: My problem is that I am returning an image (content_type = 'image / jpeg') and the legend is not an image but text -- You received this messag

Re: Return 2 values

2013-07-05 Thread Nick Apostolakis
I am not in front of a computer right now in order to offer a full fledged examle, but you can insert your values in a dictionary or a list and return that Στις 05 Ιουλ 2013 12:54 ΜΜ, ο χρήστης "Hélio Miranda" έγραψε: can you give me an example? -- You received this message because you are s

Re: Return 2 values

2013-07-05 Thread Nick Apostolakis
You can always return a container object with the values you want as it's instance variables Στις 05 Ιουλ 2013 12:39 ΜΜ, ο χρήστης "Hélio Miranda" έγραψε: Hi My doubt is that I am not getting an image and its caption. I'll explain, I have my application to enter the picture and the caption GridF

Re: Does django have something similar to resource in rails?

2013-07-03 Thread Nick Apostolakis
Check out the Rest apis (tastypie etc ) they should be what you are looking for Στις 03 Ιουλ 2013 11:03 μ.μ., ο χρήστης "gabby gabriel" < gabbyha...@gmail.com> έγραψε: > I just started learning django. I was a rails developer before that. I was > wondering if there is anything similar to resource

Re: Views, Forms not working.

2013-07-01 Thread Nick Dokos
    {{ form.stubVar.label_tag}} {{ form.stubVar }} >     {{ form.stubNets.label_tag }} {{ form.stubNets }} > >     > > > > Nothing to do with the problem, so j

Re: django deploy structure

2013-06-26 Thread Nick Apostolakis
You could use a code versioning system like git or bazaar.when you want to deploy just pull from your repository Στις 26 Ιουν 2013 8:46 μ.μ., ο χρήστης "fred" έγραψε: > I've got django 1.5 deploying successfully to a Linux Apache system with > mod_wsgi. This system is still being developed and

Re: looking for an apache/system admin master

2013-06-18 Thread Nick Apostolakis
s group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -

Re: Problem setting up django server

2013-06-18 Thread Nick Dokos
go-admin.py will tell you. I tried to duplicate your problem (I'm running python 2.7.3 and django 1.5). For the record, I do $ django-admin.py startproject foo $ cd foo $ python manage.py shell and I get no errors. -- Nick -- You received this message because you are subscribe

Re: Problem with csrf

2013-06-12 Thread Nick Dokos
t; which takes a lot of typing out of the typical render_to_response with > RequestContext. > OK - thanks! I tried the render() approach and it works fine. I'll be using that one. There is still the question of whether the doc needs fixing. I take it you are saying that it does? -- Nick

Problem with csrf

2013-06-12 Thread Nick Dokos
work? If so, what am I doing wrong? If not, it should be taken out of the documentation. Also, can a link be added in the first page to get to the second page easily? Thanks! -- Nick -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How does it all work

2013-06-10 Thread Nick Apostolakis
) the program returns through the same interface a response, the webserver returns the response to the world. A simple idea with a lot of consequences... -- -- Nick Apostolakis e-mail: nicka

Re: Using Django and R in a production environment?

2013-04-30 Thread Nick Santos
re running them on a desktop, except not. You may be able to share code in this environment too, but I haven't played with it a ton. http://www.rstudio.com/ide/docs/server/getting_started -Nick On Tue, Apr 30, 2013 at 12:06 AM, Derek wrote: > " if you write your own R analysis routine

Re: performance of delete

2013-04-24 Thread Nick Santos
maybe with some clever django-ing you can utilize the core principles of this. IN vs JOIN vs EXISTS: http://explainextended.com/2009/06/16/in-vs-join-vs-exists/ NOT IN vs NOT EXISTS vs LEFT JOIN / IS NULL: http://explainextended.com/2009/09/18/not-in-vs-not-exists-vs-left-join-is-null-mysql/ Nick S

Re: One Way to Install Django on IIS

2013-04-12 Thread Nick D
Just what I'm going to need when I'm done with development. Thanks! On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote: > My buddy and I were working last night on getting Django running on IIS7. > We are not quite done as we are still working out issues surrounding > static file

Re: django-admin.py startproject mysite

2013-04-12 Thread Nick D
It looks like the path to django-admin.py is not in your system path. You can try using the absolute path. ie: /usr/lb/python2.7/dist-packages/django/bin/django-admin.py startproject mysite The tutorial also gives the following advice: “command not found: django-admin.py” *django-admin.py*

Re: Reset Demo Database Data (with Dates)

2013-04-12 Thread Nick D
Joe, I'm new to Django but I do have some SQL experience. Couldn't you just run a statement similar to the following? update mytable set date1 = DATE_ADD(date1, INTERVAL 1 DAY) The pinch point here is the fact that you would have to update the interval based on how old the application is. T

Building table headers based on instance of model

2013-04-12 Thread Nick D
Hi again! I'm looking to create a table based on a model. I'm trying to make it simple and reusable. I want to build the table headers () based on the fields in the model. Given a specific model, is there a way to dynamically build the headers in the template? Thanks! -- You received this

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
;p" variable won't be available to your index view > on a redirect, so I'm just working on the assumption that you just posted a > small code snippet and you're actually doing something with it beforehand. > > -- > Joey Espinosa > Python Developer >

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
I got it, thanks Joe! url(r'^$', 'index', name='gis_wo_index'), return HttpResponseRedirect(reverse('gis_wo_index')) On Thursday, April 11, 2013 4:31:26 PM UTC-7, Nick D wrote: > I'm trying to use the reverse() function to get back

Re: Newbie using reverse() function

2013-04-11 Thread Nick D
uments '{}' not found. On Thursday, April 11, 2013 4:31:26 PM UTC-7, Nick D wrote: > I'm trying to use the reverse() function to get back to my index, but I'm > not sure if my view are compatible. My index funtion takes a request ( def > index(request)). I can'

Newbie using reverse() function

2013-04-11 Thread Nick D
I'm trying to use the reverse() function to get back to my index, but I'm not sure if my view are compatible. My index funtion takes a request ( def index(request)). I can't seem to call the reverse function with the request object in the args, but if I call the reverse function without any args

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
I see. The difference between the form item and a widget was confusing me. Thanks Tom! -Nick On Wednesday, April 3, 2013 8:54:40 AM UTC-7, Tom Evans wrote: > On Wed, Apr 3, 2013 at 12:14 AM, Nick D > > wrote: > > Hi all, > > > > I've created a ModelForm

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
: > yes that is correct maybe you want to use a datepicker > http://jqueryui.com/datepicker/ > > Cheers > > > > On Tue, Apr 2, 2013 at 5:14 PM, Nick D > > wrote: > >> Hi all, >> >> I've created a ModelForm and am attempting to use it, but

Re: How to create a form list for a Model Form dynamically?

2013-04-03 Thread Nick D
I see; I didn't understand the flow at first. Is this line wrong "quiz = Quiz.objects.get(id=quiz_id)"? I don't think Django names the pk "id" by default. Maybe it should be: quiz = Quiz.objects.get(pk=quiz_id) On Monday, April 1, 2013 7:17:13 AM UTC-7, Cody Scott wrote: > I am trying to ma

Re: How to create a form list for a Model Form dynamically?

2013-04-02 Thread Nick D
he error you're getting "Quiz ID Unknown" is probably related to the fact that it's taking in your quiz_id and treating it like the response, and in that case you are not passing it a quiz_id. -Nick On Monday, April 1, 2013 7:17:13 AM UTC-7, Cody Scott wrote: > I am try

ModelForm not creating datepicker

2013-04-02 Thread Nick D
Hi all, I've created a ModelForm and am attempting to use it, but all of my date fields are coming up with type "text" instead of a datepicker. Can anybody tell me what's going on? MODEL: class GIS_WO(models.Model): WON = models.CharField(max_length=7, blank=True, null=True) status

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Nick Apostolakis
s I am after? Thank you -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received thi

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Nick Apostolakis
authentication right? Thanks, Pratik -- Tthis is cool, I was about to ask the same thing. I believe that this thread will be interesting. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr

Re: Fwd: Delivery Status Notification (Failure)

2013-03-11 Thread Nick Dokos
EATE TABLE "polls_choice" ( | "id" integer NOT NULL PRIMARY KEY, | "poll_id" integer NOT NULL REFERENCES "polls_poll" ("id"), | "choice_text" varchar(200) NOT NULL, | "votes" integer NOT NULL | ) | ; | COMMIT; |

Re: cannot install django-tracking

2013-03-11 Thread Nick Dokos
'tracking' | warning: no previously-included files matching '*.*' found under directory 'demo' | Successfully installed django-tracking | Cleaning up... ` Nick -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
e aesthetically different. Depending on your design, choose the one most comfortable. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
it as csv or as pdf. The pdf part is accomplished with reportlab library. Cheers -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr

Getting a no such column error when adding data and syncdb is not syncing

2013-01-18 Thread Nick
This is my first django project outside of the tutorials and it's frustrating to stumble over something so simple. I'm getting this error when I try to add a product: > DatabaseError at /admin/products/product/add/ > > table products_product has no column named pub_date > > This is what my mode

Re: Can't sync DB

2013-01-08 Thread Nick Sandford
Since you have already created the table using syncdb, you need to instruct South to fake the initial migration. Try the command ./manage.py migrate auth --fake and see if that works. You only need to run this once and then all future migrations don't need the --fake flag. Cheers, Nick O

Re: Using django's oodb alone

2013-01-03 Thread Nick Apostolakis
ANGO_SETTINGS_MODULE'] ='settings' from myapp.models import User, Reminder, ExtraUserAttributes etc -- ------ Nick Apostolakis e-mail: nicka...@oncrete.gr

Re: Stuck

2012-12-26 Thread Nick Dokos
;) > class Choice(models.Model): > poll = models.ForeignKey(Poll) > choice = models.CharField(max_length=200) > votes = models.IntergerField() > In python, indentation matters. Also, spelling matters just as much as it does in other languages: IntergerField should be IntegerField. Try: -

Re: Django and HSQLDB

2012-11-03 Thread Nick Apostolakis
ny sql command you like to export the database... -- --- Nick Apostolakis email:nicka...@oncrete.gr Web Site: http://nick.oncrete.gr --- -- You received this message because you are

Re: Django in Eclipse+PyDev, lot's of functions and imports are undefined/unresolved

2012-10-26 Thread Nick Santos
I don't have a solution, but I can indicate that the same thing has happened to me on a standard install of Python 2.7.2 (no virtualenv) on Windows 7, so I don't know that it's anything about your setup in particular, if that helps. -Nick On Fri, Oct 26, 2012 at 9:48 AM, Chris

Re: Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': ''}' not found.

2012-10-25 Thread Nick Doyle
for the form, change to extend *base_site.html*instead of change_form.html. Means you have to specify a bit more stuff - submit button etc - but least it works. HTH Nick On Sunday, 9 September 2012 08:33:36 UTC+10, vijay shanker wrote: > > hi > i have this model called charity >

Re: tree.io installation with django

2012-10-24 Thread Nick Apostolakos
ptember 2012 23:32:06 UTC+2 schrieb Nick Apostolakis: >> >> >> >> On Sat, Sep 15, 2012 at 11:41 PM, Fabian Weiss > >> > wrote: >> >>> I do so! I tried now this one: >>> >http://blog.stannard.net.au/2010/12/11/installing-d

Re: invalid syntax (admin.py, line 25)

2012-10-09 Thread Nick Dokos
1st = 3 Same error, right? :-) Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@goog

Re: Should we have a database independent SQL like query language in Django?

2012-10-06 Thread Nick Santos
tween databases in an application with raw sql, you consider some method for setting a flag that indicates which version of raw sql to send. But maybe I'm underestimating the need for this sort of feature. -Nick On Sat, Oct 6, 2012 at 9:59 AM, Babatunde Akinyanmi wrote: > IMO, '

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-28 Thread Nick Dokos
user  : root password  : password host  : localhost port  : 3306 Nick > create a section in that file to store your database info. > >>>>Check the file located at : > os.path.join(PROJECT_PATH, 'settings.conf') > > On Fri, Sep

Re: tree.io installation with django

2012-09-20 Thread Nick Apostolakis
working installation... -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are subscribed to the Google Groups "

Re: tree.io installation with django

2012-09-20 Thread Nick Apostolakis
rm try python manage.py migrate projects -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are subscribed to the

Re: tree.io installation with django

2012-09-19 Thread Nick Apostolakis
On 18/09/2012 10:33 μμ, Fabian Weiss wrote: YES! I got this error: http://snipurl.com/251cbjb After doing your MySQL Code it WORKS!! :) THX alot! You are welcome :) -- -- Nick Apostolakis e

Re: tree.io installation with django

2012-09-18 Thread Nick Apostolakis
my installation it failed to install the initial mysql data so i have done a manual import of mysql initial data using this command mysql -u treeiouser -p< sql/mysql-treeio-current.sql treeio maybe your problem is the same -- --

Re: tree.io installation with django

2012-09-17 Thread Nick Apostolakis
ctions closely otherwise you will get errors. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are subscribed to the Google Groups

Re: tree.io installation with django

2012-09-16 Thread Nick Apostolakis
simple and it is a very valuable technique -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr

Re: tree.io installation with django

2012-09-15 Thread Nick Apostolakis
e67dd853#dvMCsmIWwYZUWV2qKMFxGLMI4pq+O3PiPy2iHAp3ZzQ= > > > Why don't you use django 1.3 as it is described in the requirements file? Thats a simple way to see if you problems stem from django version incompatibility -- --

Re: My "Contributors" page Conundrum

2012-08-27 Thread Nick Santos
Hi JJ, You're absolutely right that there is a better way to do this that doesn't involve repetition. To start with, check out the docs under example on the page for the URL dispatcher: https://docs.djangoproject.com/en/dev/topics/http/urls/ - I'll walk you through part of it though. First, let's

Re: After form validation, need to post and call a perl program to display to a log file

2012-08-24 Thread Nick Santos
some output, that's fine, but if you plan on going into production, make sure to know the risks and consider alternatives. -Nick On Friday, August 24, 2012 6:11:45 AM UTC-7, Melvyn Sopacua wrote: > > On 24-8-2012 8:41, Pervez Mulla wrote: > > > Once validation happened (its wo

Re: django makemessages doesn't recognize trans in templates

2012-08-20 Thread Nick Apostolakis
orks fine -- --- Nick Apostolakis email:nicka...@oncrete.gr Web Site: http://nick.oncrete.gr --- -- You received this message because you are subscribed to t

Re: advantages and disadvantages of Raw sql queries in django

2012-06-30 Thread Nick Apostolakis
a lot. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are subscribed t

Re: advantages and disadvantages of Raw sql queries in django

2012-06-30 Thread Nick Apostolakis
. Interesting idea, I haven't used that yet, could you give an example of that? Would you use a method calling the ORM that would include something like self.objects.select_related().bla bla? Thanks -- -- Nick Aposto

Re: advantages and disadvantages of Raw sql queries in django

2012-06-30 Thread Nick Apostolakis
very portable. I can reproduce my development environment in 10mins (with the use of pip and virtualenv of course) and start working in a new machine with minimum hassle. -- -- Nick Apostolakis e-mail:

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Nick Apostolakis
cost of 7.9€ You can then install anything you like on it. I have such a server with them and it works fine. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr

Re: Python FAQ: Webdev

2012-06-07 Thread Nick Apostolakis
o with mongo db. Anyway what I like about Django is that it has a rich feature set, it is infinitely extendable AND can be virtualized (though pip, fabric, etc) making replication of installation easy. -- ------ Nick Apos

Re: import error: no model named .....

2012-05-17 Thread Nick Legotte
urls.py should look like this from django.conf.urls.defaults import* from wikicamp.views import hello urlpattern = patterns(' ', ('^hello/$',hello), ) On Thu, May 17, 2012 at 12:23 PM, Tanveer Ali Sha wrote: > Hi Apokalyptica Painkiller , > > Here is my urls.py and views.py > > > *URLS.PY* >

Re: How to specify utf8 in models.py

2012-05-17 Thread Nick Legotte
This should answer your question: class Person(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) def __unicode__(self): return u'%s %s' % (self.first_name, self.last_name) If you define a __unicode__() method on your mode

Re: import error: no model named .....

2012-05-17 Thread Nick Legotte
Copy and paste the stacktrace On May 17, 2012 11:58 AM, "Ali Shaikh" wrote: > Hey... > > > I am practicing to implement simple examples in django... > > started project with > 1.django-admin.py startproject wikicamp > 2.python manage.py startapp wiki > 3.editing the setting > 4.python manage.

Re: Python FAQ: Webdev

2012-05-12 Thread Nick Apostolakis
about Flask and Pyramid either. -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Much the same code, different businesses

2012-04-09 Thread Nick Mellor
Doug, Many thanks for your response. I'm leaning towards your 3rd option, initially using subdomains rather than full domain names for each business. Best wishes, Nick On Mar 27, 10:48 am, Doug Ballance wrote: > There are a few choices that I'm familiar with. > > 1) Create

Much the same code, different businesses

2012-03-26 Thread Nick Mellor
a StoreId in all queries or (iii) implement row-level permissions to restrict access to data? Any other comments? Best wishes, Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Re: templates couple apps to a site; how do you separate them?

2012-03-13 Thread Nick
When writing an app one of the things you do is set limitations. It's the same for people who choose to use pluggable apps, you're trading customization for convenience. The way I would go about it is to write multiple outputs that are handled primarily in the view. You could set up a keyword para

list_editable raising a MultiValueDictKeyError

2012-02-07 Thread Nick
Whenever I use list_editable inside of the django admin attempting to save the data results in Exception Type: MultiValueDictKeyError Exception Value:"Key 'form-0-id' not found in Whenever I create custom forms I simply add in the form-0 inputs as a hidden field. How do I work ar

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Nick Raptis
not something I have done. Nick On 12/15/2011 05:55 PM, Petr Přikryl wrote: Thanks Nick, By the 'application' I mean another part of the Django installation/project that does some specific function. Thanks for telling me that the wsgi_handler.py is the ".wsgi" file that I wa

Re: Django a Turnkey Linux -- I need your experience.

2011-12-14 Thread Nick Raptis
re seasoned devs out there, and I hope it helped even just a bit, Nick On 12/14/2011 11:15 AM, Petr Přikryl wrote: Hi, Being quite new to Django, I need to move the semi-ready application to the publicly available server (for a company users) and test it there. It happened that the Django Turnke

Re: Error 500 instead of 404

2011-11-20 Thread Nick Apostolakis
ist(name) TemplateDoesNotExist: 500.html Thank you for your time. Best regards, Ricardo F. Teixeira If the template exists, then it could easily be a directory or file permission error. I have seen the same in my installation a number of times :) Check out the paths and the permissions -- --

Re: I can't activate the admin site

2011-10-31 Thread Nick Apostolakis
thing -- -- Nick Apostolakis e-mail: nicka...@oncrete.gr Web Site: http://nick.oncrete.gr -- -- You received this message because yo

Re: I can't activate the admin site

2011-10-31 Thread Nick Apostolakis
mplains about IndentationError: unexpected indent" I would guess that you have typed an extra space or tab somewhere, that ruins the identation. Since you use an IDE it should be easy to find it. -- ------ Nic

recent 1.3.1 upgrade - admin panel throwing NoReverseMatch error now

2011-10-18 Thread Nick Nachefski
Hello, I've recently upgraded to 1.3.1 and am getting a NoReverseMatch exception with piston when attempting to view my admin panel. Has anyone else seen this with 1.3.1? Here is the relevant url.py config for my piston: blah_resource = Resource(handler=BLAH) urlpatterns = patterns('',

<    1   2   3   4   5   6   7   >