Re: Multiple Database Setup problem !?

2018-11-02 Thread 'Tom Evans' via Django users
Hi David Your router isn't configured correctly. This applies to all the allow_foo() methods, but see allow_migrate [1] as an example: Determine if the migration operation is allowed to run on the database with alias db. Return True if the operation should run, False if it shouldn’t run, or

Re: Get data from an external api into my database.

2018-03-20 Thread 'Tom Evans' via Django users
On Tue, Mar 20, 2018 at 10:23 AM, Mukesh Jha wrote: > I want to access a api from http://open-platform.theguardian.com/ or > https://newsapi.org/ and load it into my sqlite database. The data in these > site is in json format and I want them to get converted into my

Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-20 Thread 'Tom Evans' via Django users
It is not looking for "home_page.html", it is looking for "base/home_page.html". On the error page it lists the locations it is searching for the template, and explicitly says the directories that are being searched. You say the file is at

Re: Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
In order to make it "work", I imported the models from foo_lib.django app.models into foo_lib.models. Django was then able to find the models, and create the migration files. They are all in the wrong place however, that part of the library should have nothing to do with django and so this

Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
Hi all I'm writing a small library which will be bundled together with a pluggable django app. The app provides a bunch of different AppConfig instances, the end user chooses one and pops it in their INSTALLED_APPS: INSTALLED_APPS += [ 'foo_lib.contrib.django_app.configs.FooAppConfig', ] All

Re: UUIDs eventually choke as primary key

2018-02-23 Thread 'Tom Evans' via Django users
On Fri, Feb 23, 2018 at 4:20 PM, M Mackey wrote: > I have noticed in the python > path that there are two paths to .../lib/python3.6. One from my virtualenv, > and one at /usr/local/. Not sure where to clear that up, since I don't > believe I've got my apache env set up to pull

StaticLiveServerTestCase: database emptied after first test after upgrading to Django 1.11

2018-02-23 Thread 'Tom Evans' via Django users
Hi all We have a bunch of functional tests derived from StaticLiveServerTestCase using selenium that have started failing after upgrading from Django 1.8 to Django 1.11. The database is initially populated via data migrations, but after running one test it all the data loaded via migrations has

Re: Hi, a little help here.

2017-12-15 Thread 'Tom Evans' via Django users
Please reply with the full error message. Also, I am pretty sure that when pip fails to build something it also says "Full log message available in /foo/bar/quuz.log". If it does, please also send the contents of that log file. Cheers Tom On Fri, Dec 15, 2017 at 12:41 AM, Aaron

Re: Migrations circular dependency on upgrade to Django 1.11

2017-12-15 Thread 'Tom Evans' via Django users
After more investigating, it seems that the problem was due to the squashed migrations and the migrations they replaced both being present. After removing all migrations (from our apps) listed in "replaces" and fixing up the dependencies to not point at the old squashed migration (which I guess

Migrations circular dependency on upgrade to Django 1.11

2017-12-15 Thread 'Tom Evans' via Django users
Hi all I'm updating a project from Django 1.8 to 1.11, however the migrations which ran correctly under 1.8 now raise a CircularDependencyError for (effortless_auth.0001_initial, app.0028_create_south_korea_data_set, effortless_auth.0003_add_dev_group, app.0027_create_effortless_verticals), which

Re: Remove/undo a multi table inheritance

2017-11-02 Thread 'Tom Evans' via Django users
Does it work if you do it in several stages (each one is a separate migration action): * Add the OneToOneField, make it nullable, still using MTI * Add a python migration that populates it from the existing MTI information * Remove the MTI * Make the 1-2-1 field as you like it (remove null=True

Re: Bizarre URL behaviour after deploying

2017-08-31 Thread 'Tom Evans' via Django users
On Thu, Aug 31, 2017 at 2:09 AM, Bernd Wechner wrote: > Daniel, > > Yes, I have deployed, that is the problem in a sense. URLs are clean in dev > and suddenly contain an app_name when deployed. > > Not sure what you mean by configuration? The Django settings are here: > >

Re: A lot of Problems with Migrating (conceptual)

2017-08-23 Thread 'Tom Evans' via Django users
On Tue, Aug 22, 2017 at 8:37 PM, Alexander Joseph wrote: > Thanks for all the advice. > > One more question - could project structure be causing issues with > migrations? I'm working on a large project and many apps in my project have > several layers of "sub-apps".

Re: TypeError: __init__() takes 2 positional arguments but 3 were given (django-material)

2017-07-28 Thread 'Tom Evans' via Django users
Your error refers to part of a class you haven't included, ClientsForm, and it has an error to do with a class called Stacked, which you haven't shown where it is imported from. Hard to diagnose further.. Cheers Tom On Thu, Jul 27, 2017 at 1:02 AM, Elias Coutinho

Re: serving over either 80 or 443

2017-07-20 Thread 'Tom Evans' via Django users
On Wed, Jul 19, 2017 at 9:55 PM, Larry Martell wrote: > This is probably not strictly a Django question, but I'm hoping > someone here has had to solve this before. > > We have a django app that is sometimes deployed in an environment with > SSL and talks over port 443,

Re: How to get extra data in clean_data?

2017-07-18 Thread 'Tom Evans' via Django users
On Tue, Jul 18, 2017 at 2:13 PM, 李余通 wrote: > Thank you very much!you are right > I solve the problem: > [...] > And last,I want konw how to send a web pag (can auto jumps Specific > location) to others,such as you url >

Re: How to get extra data in clean_data?

2017-07-18 Thread 'Tom Evans' via Django users
As described in the docs on form and field validation, if you want to validate one field using another field, you do so in the clean() method: https://docs.djangoproject.com/en/1.8/ref/forms/validation/ and in detail

Re: How to create a fixed-length binary field with a unique constraint?

2017-07-13 Thread 'Tom Evans' via Django users
On Tue, Jul 11, 2017 at 12:05 AM, Mike Morris wrote: > From your description (save a SHA-256 checksum), you do not need a binary > field. Binaries are always of indeterminant length; they can hold photos, > executables, sound files, etc. > > By definition, a SHA -256 is 256

Re: django implementation group by every two hours,

2017-07-13 Thread 'Tom Evans' via Django users
On Tue, Jul 11, 2017 at 10:22 AM, kanhaiya yadav wrote: > Hi, > > I have a model > class XyzModel (models.Model): >name = models.CharField(max_length=NAME_LENGTH) >unique_id = models.CharField(max_length=NAME_LENGTH) >info =

Re: save cropped image with PIL to database

2017-07-13 Thread 'Tom Evans' via Django users
On Mon, Jul 3, 2017 at 11:09 AM, shahab emami wrote: > hello > > i have a question and i cant find answer with search. > > i want to save cropped image in database then : > this is my model: > > class Photo(models.Model): > file=

Re: Vim plugin that does Django code completion?

2017-07-13 Thread 'Tom Evans' via Django users
Hi Robert Ignore the helpful people telling you to stop using vim and use some god awful UI, the plugin you are looking for is called jedi.vim https://github.com/davidhalter/jedi-vim Debian has a package, vim-python-jedi, or you can install using Pathogen or Vundle. Cheers Tom On Fri, Jul 7,

Re: value of checkbox aren't saved in the form

2017-05-31 Thread 'Tom Evans' via Django users
Your checkbox fields on the form are "market" and "sector", but your "Parameters" model doesn't have fields with those names, and you aren't doing anything with the values from the form in your save() method. Where were you expecting those checkboxes to be saved? Cheers Tom On Wed, May 31,

Re: How to fix "plural forms expression could be dangerous"

2017-05-18 Thread 'Tom Evans' via Django users
You need to change INTEGER and EXPRESSION for the correct values. I believe for zh you want "nplurals=1; plural=0;" Cheers Tom On Thu, May 18, 2017 at 7:41 AM, Martin Brochhaus wrote: > Hi everyone, > > in my project, I am generating my .po files like this: > >

Re: Django Deployment showing list of directory

2017-05-08 Thread 'Tom Evans' via Django users
On Mon, May 8, 2017 at 11:08 AM, sarfaraz ahmed wrote: > Hello Guys, > [ .. ] > This is conf file for Apache >

Re: Unicode error in __unicode__(self) function

2017-05-08 Thread 'Tom Evans' via Django users
What data is "Jón"? Is it u'J\xf3n' or something else? (print repr(self.fname)) Cheers Tom On Mon, May 8, 2017 at 5:10 PM, rmschne wrote: > I have a Django setup that has worked for a very long time. Yesterday I > upgraded from Django 1.10 to 1.11.1 and am getting the

Re: Django and Nginx through uwsgi is not working

2017-03-16 Thread 'Tom Evans' via Django users
On Thu, Mar 16, 2017 at 12:25 PM, valerio orfano wrote: > Hi All > > i ve created a django application not using virtual environment. I ve > installed nginx and trying to integrate them via uwsgi application. > Here my configurations files. > > [uwsgi] > chdir =

Re: Initial data, tests and migrations

2017-02-22 Thread 'Tom Evans' via Django users
On Wed, Feb 22, 2017 at 2:40 PM, Tim Graham wrote: > I'm curious if you feel that running django_otp's tests as part of your > project's tests is adding value. I'm curious whether you think I commonly spend my time doing things that I don't think add value... django_otp is

Re: Initial data, tests and migrations

2017-02-22 Thread 'Tom Evans' via Django users
On Wed, Feb 22, 2017 at 2:41 PM, Adam Stein <a...@csh.rit.edu> wrote: > On Wed, 2017-02-22 at 14:22 +0000, 'Tom Evans' via Django users wrote: > > The URL you refer to mentions about loading data for apps. Doesn't mention > anything in regards to tests. Why are fixtures bad

Re: Initial data, tests and migrations

2017-02-22 Thread 'Tom Evans' via Django users
On Wed, Feb 22, 2017 at 12:47 AM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > On Tuesday 21 February 2017 19:00:42 'Tom Evans' via Django users wrote: > > > >> Previously, these instances were loaded from a JSON fixtures file, > > > > And you ca

Initial data, tests and migrations

2017-02-21 Thread 'Tom Evans' via Django users
Hi all I'm having some difficulty working out how I am supposed to provide initial data for testing purposes, particularly when the initial data is not immediately pertinent to the test. For instance, our project uses django_otp, which has some simple tests. However, these tests create user

Re: Django and timezones ... how to initialize a field to now() in the in clients time zone?

2017-01-23 Thread 'Tom Evans' via Django users
On Sat, Jan 21, 2017 at 9:40 AM, Bernd Wechner wrote: > I have a model with this field: > > date_time = models.DateTimeField(default=timezone.now) > > if I look at the generic create form, it inializes the date_time field with > now in UTC, not in local time. > > Now I

Re: StreamingHttpResponse response length in a stats middleware

2017-01-18 Thread 'Tom Evans' via Django users
On Wed, Jan 18, 2017 at 11:42 AM, Stefano Tranquillini wrote: > Hi there, > > I'm using the StreamingHttpResponse to stream a response, it works great. > Now, I've a middleware that measures the size of req/response that users do. > For normal HttpResponse i use

Re: What is the fate of closed database connections?

2017-01-18 Thread 'Tom Evans' via Django users
On Tue, Jan 17, 2017 at 7:58 PM, Fred Stluka wrote: > Mike, > > As of version 1.6, Django supports persistent DB connections > (connection pooling). Pedantry: Persistent connections are not the same as connection pooling. With persistent connections, if a worker does not have a

Initial data with migrations vs fixtures

2016-12-01 Thread 'Tom Evans' via Django users
Hi all We're moving a project over to the latest release (well, we're at 1.7 now, but that's the end goal anyway) and replacing South migrations with Django migrations. It looks like that fixtures are no longer thought of as the correct way of providing initial data. Is this because

Re: Silently continuing past an exception: is this proper? how else can I do this?

2016-10-26 Thread 'Tom Evans' via Django users
On Sun, Oct 23, 2016 at 1:39 PM, Andrew Chiw wrote: > It seems there's a problem with my code, because you're just supposed to > pass a dict to DocumentForm (or any modelForm really), not a model instance. > > I actually want to make a DocumentForm initialized with

Re: Slow first request django

2016-10-18 Thread 'Tom Evans' via Django users
On Fri, Oct 14, 2016 at 5:15 AM, Avraham Serour wrote: > I will take a wild guess here and say that this is a modwsgi problem, it > seems it will only load the django app after the first request. Indeed, see this SO post for how to tell it to load your app immediately on start

Re: A public cloud with django backend

2016-09-19 Thread 'Tom Evans' via Django users
On Thu, Sep 15, 2016 at 8:21 AM, Rahul Doshi wrote: > Hi ,I want to setup a dropbox like server with django. So far i have > achieved uploading files onto a location .I want these files to show up on > browser which they do(while saving file to the location I indexed an

Re: django 1.9, migrations SUCK

2016-08-03 Thread 'Tom Evans' via Django users
On Fri, Jul 29, 2016 at 9:19 PM, Aztrock wrote: > Excellent, thanks > > This method i use from django 1.4, never have problem. > Apart from having to restart your application server each time you added a country, sure, no problems. Cheers Tom -- You received this

Re: pass link value in argument for view

2016-05-12 Thread 'Tom Evans' via Django users
On Wed, May 11, 2016 at 3:28 PM, quentin ladrier wrote: > sorry for the delay . I obtain this kind of error message: > NoReverseMatch at /my_views/my_arg/ . Reverse for 'xxx' with arguments > '(my_arg,)' and keyword arguments '{}' not found. 1 pattern(s) tried: >

Re: help with django-guardian

2016-03-04 Thread 'Tom Evans' via Django users
On Thu, Mar 3, 2016 at 10:58 PM, Joshua Chan wrote: > First off, I am new to both django and python. > > I am extending an existing app. We have several admin.py files > > They all look like this: > > #!/usr/bin/env python > # coding: utf-8 > from guardian.admin

Re: Ajax + Django + jQuery + HTML5

2016-02-29 Thread 'Tom Evans' via Django users
On Sun, Feb 28, 2016 at 9:46 PM, wrote: > > I need get path to local file in for ImageField. > Next, transfer path to my view thought Ajax request, update in database and > almost all. > > I need will make it manually, for my goals. > > May be, anyone known how it

Re: Manually setting the session cookie

2016-02-01 Thread 'Tom Evans' via Django users
On Mon, Feb 1, 2016 at 10:13 AM, monoBOT wrote: > Hello django! > > Im creating a saas with django, due to some project requirements need to > manually change the user "on the fly" but have problems with the cookie, > since I dont know how to manually (read

Re: date picker

2016-01-18 Thread 'Tom Evans' via Django users
On Mon, Jan 18, 2016 at 1:03 AM, sum abiut wrote: > Hi, > i am having some trouble with my date picker. I probably missing someting, > the form fields are displaying fine, but some how the datepicker is no > displaying. probably something to do with my jquery. Please help > [

Re: Upgrading to 1.9 - Any Easy Guide ?

2016-01-11 Thread 'Tom Evans' via Django users
On Mon, Jan 11, 2016 at 4:36 PM, Vibhu Rishi wrote: > Hi > > I work on a hobby project on and off which is based on django. After a long > gap, I picked up the work again. In the meantime, it seems that django has > been evolving faster than I have been working. I am

Re: Update model field after a certain period

2016-01-06 Thread 'Tom Evans' via Django users
On Wed, Jan 6, 2016 at 9:39 AM, wrote: > I have a Django model with a Boolean field called New. During the model > creation it's set to True, but I want it to be updated automatically to > False after a certain period (1 month post creation for example). Can I use

Re: Django Model | Relationship question. Student->School Class

2015-12-22 Thread 'Tom Evans' via Django users
On Tue, Dec 22, 2015 at 6:50 AM, Pemby wrote: > With this code for example. > > class Students(models.Model): > first_name = models.CharField(max_length=30) > last_name = models.CharField(max_length=30) > classChoice1 = ? > classChoice2

Re: Tests not passing in suite but pass individually

2015-12-02 Thread 'Tom Evans' via Django users
On Wed, Dec 2, 2015 at 4:20 PM, Siddhi Divekar wrote: > Hi Tim, > > Below is what am trying to achieve. > > class OrcaTestCase(TestCase): > > def test_customer_create_modify_delete(self): > '''Test customer object create, modify and delete operations in >

Re: Transitioning existing login portal to Django

2015-12-02 Thread 'Tom Evans' via Django users
On Tue, Dec 1, 2015 at 10:15 PM, Evan Palmer wrote: > Hello, > > Does anyone have experience with transitioning an existing database > including user login data to Django? > > I am about to begin work on a startup's hand-written web portal that > consists of about 2000 lines

Re: Getting NoReverseMatch and can't find the mistake

2015-11-18 Thread 'Tom Evans' via Django users
On Tue, Nov 17, 2015 at 7:08 PM, Bob Aalsma wrote: > Sorry, can't seem to find what's wrong here, please help: what am I > missing??? > > I'm seeing > > NoReverseMatch at /zoekopdrachten/4/resultaat/ > > Reverse for 'resultaat' with arguments '('',)' and keyword

Re: How do I let forms.models.ModelChoiceField.queryset relate on request.user?

2015-11-18 Thread 'Tom Evans' via Django users
On Mon, Nov 16, 2015 at 5:38 PM, Axel Rau wrote: > > Any idea how to add __init__() to a form class, created by modelform_factory > () ? > > Axel > modelform_factory takes many arguments, one of which is for the base form class to use. You can provide a different base class

Re: django seems does not support mysql 5.7.9

2015-11-17 Thread 'Tom Evans' via Django users
On Tue, Nov 17, 2015 at 11:44 AM, Pengfei Xue wrote: > yesterday, i upgraded my local mysql server to 5.7.9 (mysql Ver 14.14 > Distrib 5.7.9, for osx10.11 (x86_64) using EditLine wrapper), and > found i can not make my app run anymore, find this error, is there some one >

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-13 Thread 'Tom Evans' via Django users
On Fri, Nov 13, 2015 at 12:14 AM, James Schneider wrote: > On Thu, Nov 12, 2015 at 5:10 AM, Jose Paul wrote: >> >> I am just running DJango 1.8 test cases ,here is start of the error trace > > I suspect one of your tests is rendering a template.

Re: django filebrowser decoding

2015-10-29 Thread 'Tom Evans' via Django users
On Thu, Oct 29, 2015 at 8:35 PM, Emīls Brass wrote: > I got django filebrowser for admin, where admin can see all added files in > special folder. > > When admin click on folder to see whats inside, if there is some file with > name who contains UNICODE chartacter, then I

Re: Reverse query name clashe with a M2M and through

2015-10-23 Thread 'Tom Evans' via Django users
On Fri, Oct 23, 2015 at 3:27 PM, Gagaro wrote: > However, I still have a question. The reverse relation is wishlist_set by > default. Why is Django bothered if the attribute is name wishlist (I would > understand if I named my attribute wishlist_set)? The message doesn't

Re: django.test: @override_settings(LANGUAGE_CODE = 'xx') does not affect the default language in a test

2015-10-06 Thread 'Tom Evans' via Django users
On Tue, Oct 6, 2015 at 3:11 PM, Yunshi Tan wrote: > Let's say we have a default language code in settings.py > >LANGUAGE_CODE = 'en' > > Then we have > > >> from django.utils import translation > >> assert translation.get_language() == 'en' > > We are good by

Re: NOOB exposes CSRF token. Now what?

2015-09-25 Thread 'Tom Evans' via Django users
On Fri, Sep 25, 2015 at 12:01 PM, Tom Evans wrote: > However, what is stored in settings is your SECRET_KEY. If you have > leaked it, you should change it immediately. This will invalidate.. Helpfully, the django documentation for SECRET_KEY details precisely what

Re: NOOB exposes CSRF token. Now what?

2015-09-25 Thread 'Tom Evans' via Django users
On Fri, Sep 25, 2015 at 7:03 AM, Gordon Reeder wrote: > I'm learning Django and still very new at it. And like a newbie, I may have > made a newbie goof. > I have leaked my CSRF token. > I am building up a web site with Django which I have under revision control > with Git. I

Re: Forms questions

2015-09-22 Thread 'Tom Evans' via Django users
On Tue, Aug 25, 2015 at 6:10 PM, Hugo Kitano wrote: > > Here it is, very simple: > > Submit form: > > {% csrf_token %} > {{ form.as_p }} > > > Read this section of the manual, particularly the section starting "Firstly, ...". The problems yo uare having are

Re: Integrating RabbitMQ with Django

2015-09-16 Thread 'Tom Evans' via Django users
On Wed, Sep 16, 2015 at 2:34 PM, Erol Merdanović wrote: > Hello Vijay > > The differences are > 1. Celery message and our message has different format > 2. Celery uses custom queues > > Is this correct? > Yep. Celery is a distributed task system which can use AMQP as

Re: Django deployment

2015-09-16 Thread 'Tom Evans' via Django users
On Wed, Sep 16, 2015 at 2:20 PM, bobhaugen wrote: > You gotta give PHP credit here. They did deployment better than anybody. > I'd disagree massively. Deploying code is not the same as ftping a bunch of files in to a directory and hoping for the best. Where is the

Re: How to "stop" validation when having errors (is_valid) for form?

2015-09-11 Thread 'Tom Evans' via Django users
On Fri, Sep 11, 2015 at 7:37 AM, wrote: > Example: I have 2 on a html page, which is a form (assume it is > login form, with username and password, both are required and will do > validation on this.). > > The behavior of is_valid I see is: > When submit, the returned

Re: Generating a timeseries and aggregation/annotation using QuerySet.extra()

2015-09-11 Thread 'Tom Evans' via Django users
On Fri, Sep 11, 2015 at 1:15 PM, Wannabe Coder wrote: > Hello everyone! > > I already created a ticket detailing my use case, and one of the developers > pointed me to this discussion group. I am not quite satisfied with the > response I got since the DateTransforms that

Re: customize app ordering in django admin

2015-09-10 Thread 'Tom Evans' via Django users
On Thu, Sep 10, 2015 at 11:50 AM, Pawanesh Gautam wrote: > hi > > i have list of app (app1,app2.app3,app3,app4).i would like to change the app > order in admin site so that it will look like dis : > (app1,app3,app4,app2). > please suggest some tips to perform this . > > thanks

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-09 Thread 'Tom Evans' via Django users
On Tue, Sep 8, 2015 at 11:12 PM, ThomasTheDjangoFan wrote: > Hi guys, > > I have invested quite a lot of time & energy into learning django and I feel > comfy using it. (I have studied the 2 Scoops, the Tdd book and got the boook > "Scaling Django" and

Re: Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread 'Tom Evans' via Django users
On Mon, Sep 7, 2015 at 12:33 PM, Hans S. Tømmerholt wrote: > GenericIPAddressField isn't intended to represent a CIDR address, which I > guess is what I'm trying to put into it. > > There is stuff like this: > https://pypi.python.org/pypi/django-netfields/0.2.1 +1 This is what

Re: Django and Wiki

2015-09-03 Thread 'Tom Evans' via Django users
On Thu, Sep 3, 2015 at 12:01 PM, Нина Белявская wrote: > Is anywhere in the Web examples of Wiki projects on Django? https://www.djangopackages.com/grids/g/wikis/ > Which wiki-engine is used on https://code.djangoproject.com/wiki/? That is not a django site, it is a Trac

Re: Time Zone Problem when following on tutorial

2015-08-20 Thread 'Tom Evans' via Django users
On Fri, Jul 4, 2014 at 12:01 AM, Mike Dewhirst wrote: > On 3/07/2014 11:57 PM, Jerry Wu wrote: >> >> Mike, >> >> Sorry for the late reply. >> >> Your explanation about "time is constant" makes sense to me. But I still >> didn't know what to do with time setting following

Re: Django 1.6.11 model class query

2015-08-19 Thread 'Tom Evans' via Django users
On Wed, Aug 19, 2015 at 3:18 PM, Nikunj Badjatya wrote: > Hello All, > > I have a django model class defined as: > > > class Test(models.Model): >id=AutoField(primary_key=True) >name = models.CharField(max_length=45, null=False) >description =

Re: Issue when rendering manually a form's HiddenInput

2015-08-07 Thread 'Tom Evans' via Django users
On Thu, Aug 6, 2015 at 6:55 PM, wrote: > So, I'm trying to use inputs with the hidden attr. I have my form class > (IndexForm) that has this: > field = HiddenInput() > Then, I pass the instance of IndexForm (index_form) to the template, and > manually render the field

Re: django "plain managers"

2015-08-05 Thread 'Tom Evans' via Django users
On Wed, Aug 5, 2015 at 1:03 PM, varun naganathan wrote: > what does django mean exacty by "plain manager"??? A models.Manager() instance that is added by default to your models.Model class if you do not explicitly specify a "non plain" manager.

Re: Upload new file to the uploaded file path

2015-08-05 Thread 'Tom Evans' via Django users
On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery wrote: > I have a model for Video: > > class Video(models.Model): > title = models.CharField(max_length=75) > pubdate = models.DateTimeField(default=timezone.now) > original_video =

Re: Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread 'Tom Evans' via Django users
On Thu, Jul 30, 2015 at 4:08 PM, Rich Lewis wrote: > Dear All, > > I'm new to the Django ORM, and quite new to ORMs in general. I have two > models (lets call them A and B) between which I have an interesting mapping. > There are precisely 2 B instances associated with each

Re: Celery to process task and modify the model fields

2015-07-15 Thread 'Tom Evans' via Django users
On Tue, Jul 14, 2015 at 9:15 PM, Robin Lery wrote: > Yes. That time you were the one to guide me. I was looking at other projects > after that. > > I am just confused on how to get the video.mp4_720 to be the converted > video. Will you please help. > This is explained in

Re: potential bug

2015-06-14 Thread 'Tom Evans' via Django users
On Sun, Jun 14, 2015 at 3:24 PM, Mark Nesterovych wrote: > Hello. > I've just finished small django site, and keep going on creating tests. > I've found and issue with Model.objects.values_list method. > Looks like it disregard test database and looks into production

Re: Django plugin

2015-06-12 Thread 'Tom Evans' via Django users
On Thu, Jun 11, 2015 at 8:02 PM, Andreas Kuhne wrote: > Hi all, > > I was wondering if there is a plugin application for Django. What I want to > accomplish is react to different kinds of events on my models and then > create plugins on the fly for them. > > The system

Re: Simulating REMOTE_USER login with the test server

2015-06-10 Thread 'Tom Evans' via Django users
On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai wrote: > Hello, > > I’m about to use the test server with REMOTE_USER based logins. I already > know how to set it up with my Apache based server, but I can see no way of > doing the same with the dev server (manage.py