Re: Django tutor.

2022-07-27 Thread nick washington
Cool On Wed, Jul 27, 2022, 18:19 Md Aminul Haque wrote: > Show Django Official website > > Sent from my Huawei phone > > > Original message > From: pediah wanmi > Date: Wed, Jul 27, 2022, 5:22 PM > To: django-users@googlegroups.com > Subject: Django tutor. > > I am a djongk in

Move apps to different folders or to a root folder

2022-11-06 Thread Nick Chang
Hello community, I am trying to organize my Django project's structure as the number of apps is growing. So I am attempting to move an app in the sub-folder that contains its model definitions. The app used to be named `< sub_folder_name>.foo ` and now it will be

Re: Move apps to different folders or to a root folder

2022-11-10 Thread Nick Chang
mes, would this move break it? And it can be fixed by specifying the 'db_table" value in the moved models? Thanks! On Sunday, November 6, 2022 at 10:09:41 PM UTC-5 Mike Dewhirst wrote: > On 7/11/2022 2:40 am, Nick Chang wrote: > > Hello community, > > I am trying to

bulk_update() causes Select N+1 issue

2023-01-13 Thread Nick Chang
ed_keys), it actually generates N number of SELECT statements where N is the size of 'update_list' This is being flagged as Select N+1 bug. Why did bulk_update() not generate a single query as it advertises? How would I fix this Select N+1 issue to increase the performance? Kind Regard

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

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

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('',

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

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

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

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

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

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: 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'

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

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

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

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

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

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: [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 -- -

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

Looking For A Solid Learning Tutorial

2011-04-13 Thread Nick Hird
solid application step by step and see a finished working site and then take off and customize it on my own. I just haven't found any such tutorial. Thanks, --Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Best Practice for Raw SQL

2011-04-13 Thread Nick Arnett
on.commit_unless_managed() I'm doing a lot of that right now to vastly speed up a huge data import. 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 uns

Re: admin login fails

2011-04-19 Thread Nick Stinemates
On Tue, Apr 19, 2011 at 5:36 PM, pfc wrote: > I did try to delete the db and yes I had to create a new superuser > after, however this did not fix the problem. I also reset the db from > the command-line and same result. > Also, it is not a capslock issue, first thing I checked ;-) > The only th

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread Nick Arnett
en copy the old data into the new tables and delete the old tables. If by "flushed" you mean you deleted the old tables (or the whole database), then something else is going on. Nick -- You received this message because you are subscribed to the Google Groups "Django users"

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread Nick Arnett
On Sat, May 7, 2011 at 6:50 PM, George Silva wrote: > Just drop the old tables and run syncdb again! I didn't think it was safe to assume that he wanted to throw away all of his data... Nick -- You received this message because you are subscribed to the Google Groups "Django

I18n on, l10n off, but django still translating date field

2011-05-26 Thread Nick Serra
Hey everyone, thanks for looking. I am developing a site that has spanish translations. I18n is working properly, but when I switch to spanish, my form output that has dates is in spanish. This is a problem because I am sending out staff emails on some forms, which cannot have spanish in them. So I

Re: Model "created_by"

2011-07-13 Thread Nick Serra
That error just means you didn't add that field to the database and it can't find it. Verify the user_id field is on that table. On Jul 13, 2:40 pm, Petey wrote: > Hi! > > I've made a model in news application:http://pastebin.com/49VkFT14 > > I want it to save user who created a message, however

Re: Problem with simple file upload.

2010-12-22 Thread Nick Serra
I'm too lazy to check, but i'm pretty sure the name of your file input needs to match the name of the form field. Also, try troubleshooting. Use print statements in the view to see if the file object is being posted, etc. On Dec 21, 11:54 pm, vivek_12315 wrote: > Awaiting reply! > > On Dec 22, 3:

Re: English translation for error message?

2010-12-22 Thread Nick Serra
http://translate.google.com/#auto|en|%20list%20index%20out%20of%20range On Dec 21, 6:10 pm, Bill Freeman wrote: > On Tue, Dec 21, 2010 at 5:53 PM, Jonathan Hayward < > > > > > > christos.jonathan.hayw...@gmail.com> wrote: > > [jhayw...@cmlnxbld01 invdb]$ python manage.py shell > > Python 2.7 (r27

Re: Creating initial Security/Auth objects with syncdb

2010-12-22 Thread Nick Serra
Could just put the group in the initial data for sync db. Look up django fixtures. It will load data into the database from a json feed on syncdb. On Dec 21, 1:50 pm, "Mark (Nosrednakram)" wrote: > Hello, > > I would like to install an auth_group with my application and am > considering using the

Re: Full text indexing in small site

2010-12-26 Thread Nick Arnett
SQL, its indexing is probably sufficient. You'll need to store your text in a MyISAM table to do so. 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-us...@googlegroups.com. To unsubsc

Re: automated testing: how to generate human-verifiable views?

2011-01-04 Thread Nick Stinemates
hat others think. Nick On Tuesday, January 4, 2011, Jennifer Bell wrote: > Hi, > > I'm trying to figure out the best way of doing something I'd like > to partially automate staging testing by generating a sequence of > human verifiable views, with the goal of making

<    1   2   3   4   5   6   7   >