Re: Apache and Djagno

2015-01-03 Thread Mike Dewhirst
On 4/01/2015 3:45 AM, SungHo Park wrote: Hi I have tried to use Django in Apache, but it doesn't work. My Django's version is 1.7.1 so I refered this page. https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ I'm Korean and

Re: Django **not responding** when DEBUG = FALSE - No error raised / Apache HTTPError issue (?)

2015-01-03 Thread Mike Dewhirst
On 3/01/2015 10:19 PM, Paul Antropius wrote: Good morning, The production server sends absolutely **no response** when DEBUG is set to FALSE. Browser still waits for a response : no error (neither 404, nor 500) is raised. Minutes later, it ends up with a 503 error. Apache error log reads : HTTP

Re: Deploying Django on Docker

2015-01-08 Thread Mike Dewhirst
On 8/01/2015 9:45 PM, Anssi Kääriäinen wrote: For a long time I have been battling with the following problem: how to deploy Django in an easy, maintainable, secure and reliable way for small Django applications. The applications I write are mainly very low traffic, and often they are coded in a

Re: Complex validation

2013-12-04 Thread Mike Dewhirst
On 5/12/2013 3:18pm, Lachlan Musicman wrote: Actually, as a corollary to my previous question, I can't tell from the Docs whether the model's validation process (in particular, the clean() method) is called at save() or called when validating via a form? clean() isn't called by save() it is cal

Re: Complex validation

2013-12-04 Thread Mike Dewhirst
On 5/12/2013 3:04pm, Lachlan Musicman wrote: Hola, I have an object Part that has a method part_number() part_number is a function that returns an identifying string based on a number of different vars on the model. part_number needs to be unique, but the building of the part_number is complex

Re: Adding sign on required fields in django form

2013-12-05 Thread Mike Dewhirst
On 5/12/2013 7:29pm, Harjot Mann wrote: In django form I want to add a * symbol on those fields which are compulsory so that user can recognize from the name of the field that this field is required field. I've never done this in Django but normally I would use a CSS class. Try looking up mod

Re: Django for in-house data

2013-12-08 Thread Mike Dewhirst
On 8/12/2013 9:15pm, giuliano.bertole...@gmail.com wrote: Hello, I'm using Django to have people in my company access our database. Since the application is not meant for public use, I was wondering how to best struture it. The admin framework seems to be well suited for manipulating tables via w

Re: Django for in-house data

2013-12-09 Thread Mike Dewhirst
that opportunity L. On 9 December 2013 08:06, Mike Dewhirst wrote: On 8/12/2013 9:15pm, giuliano.bertole...@gmail.com wrote: Hello, I'm using Django to have people in my company access our database. Since the application is not meant for public use, I was wondering how to best struture it.

Re: Django for in-house data

2013-12-09 Thread Mike Dewhirst
Letting end users directly access the DB is quite wrong, especially if the DB is complex. In the latter case, many of the reports created will be wrong, and decisions will be made on misleading data. Robin St.Clair On 09/12/2013 09:01, Lachlan Musicman wrote: >

Re: Installing Django

2013-12-12 Thread Mike Dewhirst
Frederick On Windows, the easiest (decision-less) way to install Django is using pip or easy-install. Get pip first if you haven't done so already. Django will then end up in exactly the right place and work faultlessly. I recommend it. Virtualenv becomes important when you want to run multiple

Re: charfield primary key contentype error

2013-12-13 Thread Mike Dewhirst
On 13/12/2013 9:13pm, Hervé Edorh wrote: Hi, I have a problem with a charfield foreign key. this my model class Region(models.Model): """ Class décrivant la table Region """ code_region = models.CharField(max_length=15, primary_key=True) name = models.CharField(ma

Re: django-facebook

2013-12-17 Thread Mike Dewhirst
On 18/12/2013 12:05am, Duncan Bates wrote: Testing django for my next web app, but encountering image library problems when I've added the django-facebook to my project; ImproperlyConfigured: Neither Pillow nor PIL could be imported: No module named Image I installed pre-compiled Pillow from ..

Re: Can't Install on Windows 8.1

2013-12-25 Thread Mike Dewhirst
On 26/12/2013 3:20am, Malik Rumi wrote: Ok, everything went smoothly and beautifully as promised. I got successful install messages for pip, distribute, virtualenv and django. So first, thank you both very much. However, I seem to be stuck again. I am not sure how to get from my new virtualenv t

Re: Server Sent Event to a specific user

2013-12-29 Thread Mike Dewhirst
On 30/12/2013 12:59pm, Thai Tran wrote: Yes, that was what I thought. But letting the user subscribe to a channel without any validation / authorization is a bit scary. That is why I wanna push the message based on the user session, not through a user name or strings like that If timing require

Re: Media files django 1.5

2013-12-29 Thread Mike Dewhirst
On 30/12/2013 3:18am, Carlos Andre wrote: hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem sti

Re: Can't Install on Windows 8.1

2014-01-06 Thread Mike Dewhirst
Malik I'm confused. What are you doing with GAE and Windows 8.1? Have you given up Windows? Also, I think you will fare better with Pillow rather than PIL. It seems PIL is no longer being supported and Pillow has taken over. Mike On 5/01/2014 11:57pm, Malik Rumi wrote: This is just an upd

Re: DecimalField Problem

2014-01-08 Thread Mike Dewhirst
On Thursday, January 9, 2014 7:37:43 AM UTC+11, Timothy W. Cook wrote: > > > On Wed, Jan 8, 2014 at 6:07 PM, Erik Cederstrand > > > wrote: > >> Den 08/01/2014 kl. 17.56 skrev Daniel Roseman >> >> >: >> > > > >> But to post the solution to the issue, just for completeness. >> > > Yes, Djan

Re: app to record and play video

2014-01-12 Thread Mike Dewhirst
On 13/01/2014 5:05am, Piyush D wrote: Hi, I'm trying to build an app that records videos using webcam and plays it on demand. Are there any resources/documentations on how to do this in Django? Look at https://docs.djangoproject.com/en/1.6/ref/models/fields/#filefield which indicates how to c

Re: Cannot import name execute_manager

2014-01-21 Thread Mike Dewhirst
On 22/01/2014 6:16pm, MAurice wrote: Hello django users, I have a problem when i try to sync my db or runserver on my ubuntu 13.10. of cant import name execute manger Help me out thanks You are probably running Django 1.6.x which doesn't have execute_manager. Here is the 1.5.x code which expla

Re: Cannot import name execute_manager

2014-01-21 Thread Mike Dewhirst
On 22/01/2014 6:36pm, Mike Dewhirst wrote: On 22/01/2014 6:16pm, MAurice wrote: Hello django users, I have a problem when i try to sync my db or runserver on my ubuntu 13.10. of cant import name execute manger Help me out thanks You are probably running Django 1.6.x which doesn't

Re: Cannot import name execute_manager

2014-01-22 Thread Mike Dewhirst
their code immediately without waiting for it to disappear and cause an error two versions later. On Wed, Jan 22, 2014 at 10:44 AM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: On 22/01/2014 6:36pm, Mike Dewhirst wrote: On 22/01/2014 6:16pm, MAurice

Re: Best way to validate a Field at Model level

2014-01-23 Thread Mike Dewhirst
On 23/01/2014 7:03pm, parnigot wrote: Hi, In my models I’ve some FloatFields that must be > 0. I’m wondering what is the best way to check, at the model level (not form), that the values for these Fields are greater than 0? Browsing the documentation I’ve found the following three methods: *

Re: Best way to validate a Field at Model level

2014-01-23 Thread Mike Dewhirst
On 23/01/2014 10:23pm, parnigot wrote: Thanks Mike, Il giorno 23/gen/2014, alle ore 09:16, Mike Dewhirst mailto:mi...@dewhirst.com.au>> ha scritto: On 23/01/2014 7:03pm, parnigot wrote: Hi, In my models I’ve some FloatFields that must be > 0. I’m wondering what is the best way to

Re: Using Natural Keys With dumpdata / loaddata

2014-01-23 Thread Mike Dewhirst
On 24/01/2014 8:03am, Alex Thomas wrote: I have already created a stackoverflow question on this and have only received one (*incorrect*) response. For the sake of time I am just linking that question which has all the details. http://stackoverflow.com/questions/21151544/django-loaddata-with-

Re: Using Natural Keys With dumpdata / loaddata

2014-01-24 Thread Mike Dewhirst
On 25/01/2014 7:31am, Alex Thomas wrote: I tried adding unique=True to voyage_id but that did not have any effect. I later found somewhere in the docs that specifying is not necessary. So I am still in the same situation. Is it possible to have unique=True together with null=True and blank=Tr

Re: Need Help Moving Database to production server

2014-01-27 Thread Mike Dewhirst
On 28/01/2014 4:51pm, Mark Phillips wrote: I have a django project running on my laptop. I have (finally) managed to get it to work with apache on a production server. However, I still have a problem. When I access the admin site and login as the superuser, I get "you don't have permission to do

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Mike Dewhirst
On Monday, January 27, 2014 5:44:12 PM UTC-5, damond...@gmail.com wrote: Hi, I would like to know if this community is somewhat worried about the future relevance of Django (and other purely server-side MV* Python web app frameworks such as web2py for that matter) given the curr

virtualenv on Windows

2014-01-28 Thread Mike Dewhirst
v\proj-x\Scripts\deactivate 5. Test the workaround by opening a command prompt somewhere and entering proj-x. You should see: C:\Documents and Settings\Mike Dewhirst\Desktop>cd \users\miked\env\proj-x\myproject-x C:\users\miked\env\proj-x\myproject-x>..\Scripts\activate (proj-x) C:\us

Re: virtualenv on Windows

2014-01-28 Thread Mike Dewhirst
ycopg2-2.4.5.win32-py2.7.exe') Mike ... from inside your virtualenv. Those .exe files are pip-compatible ZIP archives On 29 January 2014 13:56, Mike Dewhirst wrote: A little while ago I suggested to someone using Windows to implement virtualenv "later". So I thought I'd docume

Re: Decompression Failed

2014-01-29 Thread Mike Dewhirst
On 30/01/2014 9:23am, James Kinsley wrote: I have just downloaded Python 2.7.6 on my Mac (running OSX 10.7.5 and I tried to download Django, but it keeps failing to decompress - any ideas I have just spent some time downloading and installing Django as part of a virtualenv exercise. I had no t

Re: virtualenv on Windows

2014-01-29 Thread Mike Dewhirst
amd64-py2.7.exe Thanks Sam - I'll rework my experience :) On 29 January 2014 16:27, Mike Dewhirst wrote: On 29/01/2014 2:23pm, Sam Lai wrote: However, even after downloading from that site they cannot be installed manually into a virtualenv! Only pip can do that. You can install th

djangopackages certificate

2014-02-02 Thread Mike Dewhirst
Just visited https://www.djangopackages.com/ and got a "certificate expired" warning. Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubsc

Re: djangopackages certificate

2014-02-03 Thread Mike Dewhirst
On 3/02/2014 4:40pm, Russell Keith-Magee wrote: On Mon, Feb 3, 2014 at 12:49 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: Just visited https://www.djangopackages.__com/ <https://www.djangopackages.com/> and got a "certificate expired" warning. H

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
Might be a day or so ... Cheers Mike On 29 January 2014 16:27, Mike Dewhirst wrote: On 29/01/2014 2:23pm, Sam Lai wrote: However, even after downloading from that site they cannot be installed manually into a virtualenv! Only pip can do that. You can install the packages

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
Michel I learned quite a lot and appreciate it greatly! Thankyou Mike On 4/02/2014 7:37am, werefrog wrote: Hello, For Windows, I tried many ways that worked but I finally installed Visual Studio 2008 C++ for the compilation problems and only pillow and psycopg2 resist in my case (I simply ex

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
orted to windows: https://pypi.python.org/pypi/virtualenvwrapper-win It works seamlessly like the linux/OSX versions -Nick<mailto:n...@enviroconsumer.org> On Mon, Feb 3, 2014 at 3:10 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: Michel I learned quite a lot and appr

Re: virtualenv on Windows

2014-02-03 Thread Mike Dewhirst
On 4/02/2014 5:31pm, Avraham Serour wrote: You can easily install pillow on windows using 'easy_install pillow' it comes with the necessary binaries and you don't need to compile Bingo! Yes - it puts it in an egg. Thanks Avraham On Feb 4, 2014 2:30 AM, "Mike

Re: Postgres and backup/restore

2014-02-06 Thread Mike Dewhirst
On 7/02/2014 10:07am, Lachlan Musicman wrote: Hola, What are people's recommendations for postgres db backup solutions? I've just installed django-dbbackup and will give it a try, but thought I'd ask what others were using. Daily dump to a file which is backed up across the network. http://w

Re: Postgres and backup/restore

2014-02-06 Thread Mike Dewhirst
On 7/02/2014 10:51am, Simon Riggs wrote: On 7 February 2014 00:31, Mike Dewhirst wrote: On 7/02/2014 10:07am, Lachlan Musicman wrote: Hola, What are people's recommendations for postgres db backup solutions? I've just installed django-dbbackup and will give it a try, but thoug

Re: Django substitute old image of ImageFile

2014-02-22 Thread Mike Dewhirst
On 23/02/2014 9:51am, Fabrizio Alongi wrote: Any solutions?? :/ I'm interested too. I have it on my todo list to write a delete routine for my own software to get rid of uploaded files which are being replaced. I haven't decided whether to make it automatic or not. I haven't gotten around to i

Re: Django substitute old image of ImageFile

2014-02-24 Thread Mike Dewhirst
Fabrizio Very nice - I'll borrow that for sure :) Thanks Mike On 24/02/2014 11:38pm, Fabrizio Alongi wrote: Hi, after I've searched online, and from this reply I have wrote this solution

Re: source code of the Django Tutorial?

2014-02-24 Thread Mike Dewhirst
On 25/02/2014 9:56am, fou...@mac.com wrote: I get indentation errors all the time Does your editor use 4 spaces instead of tab chars and does it convert all tabs to 4 spaces? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Django Windows Install Issues

2014-02-26 Thread Mike Dewhirst
On 27/02/2014 7:50am, Vernon D. Cole wrote: You need pip I agree -- even though it is terrible to install on Windows. I disagree See http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows You have to wade through an awful lot of that page before you see the 2014 upd

Re: Django cannot find my templates directory

2014-03-10 Thread Mike Dewhirst
On 11/03/2014 1:25pm, Cherrymae Tulfo wrote: hi everyone! i am looking for solutions with regards to templates directory . . i have this results.html where the data should be displayed after it is queried through views.py. . it should display the barangay id and the name of the barangay itself.

Re: Django not showing css - static files

2014-03-13 Thread Mike Dewhirst
On 14/03/2014 9:05am, Luggaz wrote: Good day, My static files are not showing on production, they show when I run them development mode. I am running Django1.6 on apache,mod_wsgi. I get the not found error on the files. Have you copied all your static files into STATIC_ROOT ?? I have been o

Re: Is there a better way to do this?

2014-03-16 Thread Mike Dewhirst
On 17/03/2014 9:59am, Gene Coetzee wrote: Hi There! Starting out with Django, and was looking for a bit of guidance. I am trying to establish a Organizational structure for employee/supervisor type relationships. Since each of these individuals will be a user, I am extending trying to also take

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Mike Dewhirst
On 21/03/2014 11:13am, Russell Keith-Magee wrote: On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S mailto:venka...@gmail.com>> wrote: On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee mailto:russ...@keith-magee.com>> wrote: On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker

Re: How to keep each field changes history?

2014-03-26 Thread Mike Dewhirst
On 27/03/2014 5:00am, sanmugasundaram k wrote: Hi, I want to keep the history of each field changes. I think to do this , Insert one more record with changes. To check the changes, i want to check each field or Django having any function. If i am wrong correct me. A quick google found ... htt

Re: the best ways export datas for my project

2014-03-26 Thread Mike Dewhirst
On 27/03/2014 5:01am, carlos wrote: Hi all, What is de best ways for export data? for example i have 3 apps, but apps 1 and 2 have relation with apps 1 and i want download data in only one file all data APP1 class Model1(...): field1 = field2 = ... -

Re: Making functions callable

2014-03-26 Thread Mike Dewhirst
On 27/03/2014 7:57am, Anthony Hawkes wrote: Hi Guys, I'm running into a problem with django(I guess this would also affect Python in general) where if I create a view eg def view(year=today.year()) The year is never re-evaluated until the server is reloaded/restarted I'm trying to figure out ho

Re: ManyToMany quick question

2014-03-31 Thread Mike Dewhirst
On 1/04/2014 9:07 AM, willyhakim wrote: when creating your models, how do you know which field to assign the ManyToManyField ? https://docs.djangoproject.com/en/1.6/topics/db/models/#many-to-many-relationships -- You received this message because you are subscribed to the Google Groups "Djan

Re: Use custom HTML to render forms

2014-04-01 Thread Mike Dewhirst
On 1/04/2014 8:12 PM, Daniel Roseman wrote: On Tuesday, 1 April 2014 00:40:44 UTC+1, Fred DJar wrote: HELP PLEASE I agree with DR but it might be interesting to know what your problem might be ... No. You don't get to demand that people help you. If someone knows the answer to your

MultiValueDictKeyError in Admin on Save - after updating to Django 1.6.2 from 1.5.5

2014-04-06 Thread Mike Dewhirst
Looking through the 1.6 release notes I couldn't see anything obvious but I tried putting select_on_save = True in the meta options for all the models but that made no discernable difference. There appears to be lots of different ways to get this error if closed tickets and admin template twea

MultiValueDictKeyError in the Admin with m2m inline

2014-04-14 Thread Mike Dewhirst
Does anyone have any answers for this SO problem? http://stackoverflow.com/questions/21033912/multivaluedictkeyerror-when-editing-inline-admin-object It is almost the same as my problem which is a many-to-many inline rather than a many-to-one. Almost identically, I can add the first record inl

Off-topic - single signon [Was: recommended fcgi way for django 1.6 on windows? Problems with https]

2014-04-15 Thread Mike Dewhirst
On 16/04/2014 6:16 AM, anton wrote: I also looked at nginx which is quite nice, but now I found the mod_authn_ntlm SSPI win32 module for apache http://www.apachelounge.com/viewtopic.php?p=25073 which finally alows me to do SingleSigneOn on windows, and it works :-) I had a client who us

Re: Pluggable crowdfunding django apps

2014-04-16 Thread Mike Dewhirst
Andres What does the app do? More particularly, does it manage crowd funding for a particular project on your own website or perhaps it is more generic for others to launch various projects ... Thanks Mike On 16/04/2014 7:37 AM, Andres Osinski wrote: I have a small crowd funding app that I

Re: Please help me out, I tried to get sync for whole day @@

2014-04-19 Thread Mike Dewhirst
On 20/04/2014 1:11 AM, Toan ComS wrote: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', #'NAME': 'mysite'), 'NAME': 'mysite', } } Is it wrong? I think so. Try removing the parens afte 'mysite' -

Re: Django and SSL

2014-04-24 Thread Mike Dewhirst
On 24/04/2014 5:35 PM, Venkatraman S wrote: Hi, Am an SSL newbie and am trying to understand various facets of moving a webapp to ssl. Are there any learnings that the group can share w.r.t moving a django site to ssl? Any pitfalls or things to be careful about. Or is it a totally independent ac

Re: Structuring an API in a large project

2014-05-01 Thread Mike Dewhirst
On 2/05/2014 2:16 AM, Adam "Cezar" Jenkins wrote: On Thu, May 1, 2014 at 11:10 AM, Venkatraman S mailto:venka...@gmail.com>> wrote: On Thu, May 1, 2014 at 9:29 PM, Cezar Jenkins mailto:emperorce...@gmail.com>> wrote: Right now I have a large project with an equally large API (

Re: Structuring an API in a large project

2014-05-01 Thread Mike Dewhirst
On 2/05/2014 10:29 AM, Adam "Cezar" Jenkins wrote: On Thu, May 1, 2014 at 5:36 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: On 2/05/2014 2:16 AM, Adam "Cezar" Jenkins wrote: On Thu, May 1, 2014 at 11:10 AM, Venkatraman S

Re:

2014-05-03 Thread Mike Dewhirst
On 3/05/2014 4:41 PM, Igor Korot wrote: Hi, ALL, This is my first official post here so be gentle... ;-) Ok. Its usually worthwhile putting a subject in so people can decide whether to look at your email. The old hands wouldn't bother with a blank subject email and they are probably the ones

Re: i've screwed up my virtualenv

2014-05-05 Thread Mike Dewhirst
On 5/05/2014 5:32 PM, Malik Rumi wrote: I have several problems. They are: Try ... 1. Create a new virtualenv for your project 2. pip install all the dependencies again (if you don't have a requirements file) including Django 1.6 3. Retrieve your project code from the repo or backup

Re: Django Database Data Type

2014-05-05 Thread Mike Dewhirst
On 5/05/2014 5:39 PM, Brendan Edwards wrote: Hi, I have just started learning Django (been flip flopping between meteor and django, cant decide which to use..) and I am fairly new to web development in general. Basically, I have a query where I am using the code "teecolor = GolfCourseTees.objec

Re: django installation

2014-06-11 Thread Mike Dewhirst
On 11/06/2014 3:40 PM, David Moya wrote: So i supposedly installed Django because on the terminal, after going through the whole process of installation, it says "Successfully installed Django". However, when i try to run the command: python -c "import django; print(django.get_version())"I get:Im

Re: In the Django documentation, Where can I found URLS.PY Symbol explanations?

2014-06-19 Thread Mike Dewhirst
On 20/06/2014 8:26 AM, Uzi Lumbroso wrote: ?In the Django documentation, Where can I found URLS.PY Symbol explanations (for example: (?P[-\w]+)). What is ... [-\w]+) matches I couldn’t find it in the Django documentation. Thanks for the help It is more or less plain Python r

Re: Time Zone Problem when following on tutorial

2014-06-23 Thread Mike Dewhirst
On 24/06/2014 8:34 AM, Jerry Wu wrote: Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tr

Re: Time Zone Problem when following on tutorial

2014-06-25 Thread Mike Dewhirst
Jerry I just figured it out and it is simple. Time is constant and all you need to do is decide how* you want to display it. The TIME_ZONE setting tells the server. An event happens at the same time everywhere in the universe (there may be Einsteinian exceptions to this) and you can store tha

crm app

2014-06-27 Thread Mike Dewhirst
I have a non-technical colleague who needs a fairly simple CRM system. SugarCRM Community Edition is overkill. Django packages doesn't have a CRM category so I wonder if anyone has anything which might be in production? I could install and configure for him but he is definitely in the end-us

Re: crm app

2014-06-27 Thread Mike Dewhirst
currently reviewing Tree.io for a client and while it looks nice, it uses Piston (abandonware), Jinja (unnecessary), Dajaxice (a bad idea generally). I wouldn't recommend it at this point. K On Friday, June 27, 2014 8:01:43 PM UTC-7, Mike Dewhirst wrote: I have a non-technical collea

Re: crm app

2014-06-29 Thread Mike Dewhirst
n-going support (backup, etc). Non-tech users always need support and training. As developers it is easy to take this for granted. You are absolutely right. I won't forget! K On Friday, June 27, 2014 10:42:48 PM UTC-7, Mike Dewhirst wrote: Thanks Kelvin. It looks good at first glance.

Re: crm app

2014-06-29 Thread Mike Dewhirst
a few user. On Sat, Jun 28, 2014 at 1:42 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: Thanks Kelvin. It looks good at first glance. Do you know if Django-CRM is suitable for an end user? Mike On 28/06/2014 2:05 PM, Kelvin Wong wrote: If you don't

Re: crm app

2014-06-29 Thread Mike Dewhirst
Andreas I'm also interested django-cms for another project so thank you for steering me in that direction. Cheers Mike On 28/06/2014 10:59 PM, Andreas Schosser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mike Do you know if Django-CRM is suitable for an end user? I have set

Re: django beginner

2014-07-01 Thread Mike Dewhirst
Step 1 is to work through the excellent tutorial ... https://docs.djangoproject.com/en/1.6/ Step 2 is to draw on paper what you want the website to look like and what the various buttons and links will do. Step 3 is to look for something which has already been done which might suit your need

Re: Creating subusers

2014-07-02 Thread Mike Dewhirst
On 2/07/2014 3:16 PM, Lachlan Musicman wrote: I would recommend Intermediate Models as a good solution for these type of weird situations https://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships +1 Cheers L. On 2 July 2014 12:20, Jorge Andrés Verg

Re: Time Zone Problem when following on tutorial

2014-07-03 Thread Mike Dewhirst
far so good. Thank you very much. On Thursday, June 26, 2014 4:48:44 AM UTC+8, Mike Dewhirst wrote: Jerry I just figured it out and it is simple. Time is constant and all you need to do is decide how* you want to display it. The TIME_ZONE setting tells the server. An

Re: Django Simple Request

2017-10-26 Thread Mike Dewhirst
On 26/10/2017 3:08 AM, Ruifeng Hu wrote: Hi All, Is there anyone who can share with me some simples of Django, I just start learning Django! STart here ... https://docs.djangoproject.com/en/1.11/ Then here to see there are seven parts to the tutorial https://docs.djangoproject.com/en/1.11/

Re: Are time zone definitions actually required/used in MySQL?

2017-11-15 Thread Mike Dewhirst
On 16/11/2017 2:53 AM, bill.torcaso wrote: I frequently use Django + MySql on a pristine Vagrant virtual machine.  And on a fresh machine, for the first time, I had to manually load time zone information into mysql. 'runserver' refused to run, although 'python ./manage.py --help' ran fine (

Manager isn't available; 'auth.User' has been swapped for 'common.User'

2017-11-15 Thread Mike Dewhirst
Any hints appreciated. I'm stumped. Traceback at the end. Many thanks Mike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I have a custom user based on AbstractUser plus a UserProfile model as follows: #common.models from dj

Repaired django [Was: Manager isn't available; 'auth.User' has been swapped for 'common.User']

2017-11-15 Thread Mike Dewhirst
Form(forms.ModelForm): ) class Meta: -    model = User +    model = UserModel fields = '__all__' field_classes = {'username': UsernameField} Cheers Mike On 16/11/2017 3:18 PM, Mike Dewhirst wrote: Any hints appreciated. I'm stum

Not Repaired django [Was: Repaired - Manager isn't available; 'auth.User' has been swapped for 'common.User']

2017-11-15 Thread Mike Dewhirst
Seems to have pushed the error a bit further down the line. Still in trouble. Mike On 16/11/2017 5:31 PM, Mike Dewhirst wrote: The fix is to adjust 1.11 django.contrib.auth.forms as follows: Line 12 - comment it right out Line 88 - change User to UserModel Line 128 - change User to UserModel

Re: Not Repaired django [Was: Repaired - Manager isn't available; 'auth.User' has been swapped for 'common.User']

2017-11-15 Thread Mike Dewhirst
Fixed it again. It works for me but no guarantees. Reverted previous changes and ... Insert line 23 - User = get_user_model() This needs someone above my pay grade. Cheers Mike On 16/11/2017 5:37 PM, Mike Dewhirst wrote: Seems to have pushed the error a bit further down the line. Still in

Re: reg:not able to open registration form web page

2017-11-17 Thread Mike Dewhirst
Amitesh I found this helpful ... https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html Cheers Mike On 17/11/2017 10:07 PM, 'Amitesh Sahay' via Django users wrote: Hello James, Thanks a lot for reply. There are couple of things that I would like to

Re: Problem with Django TemplateDoesNotExist.

2017-11-18 Thread Mike Dewhirst
On 19/11/2017 4:55 AM, jamesmarcusdavy7 wrote: Hello, am using django 1.11.7 with python 2.7.13.But i have a problem when trying to load my page,the page gives me this error TemplateDoesNotExist at / base.html Request Method: GET Request URL:http://127.0.0.1:8000/ Django Version

case-insensitive username

2017-11-19 Thread Mike Dewhirst
I have seen the two tickets and read the developer list thread[1]on this subject. Is there a best-practice approach to preventing usernames which are case-insensitively equivalent I'm hoping someone has achieved this and might be willing to share. My common.User inherits auth.models.AbstractUs

Re: case-insensitive username

2017-11-20 Thread Mike Dewhirst
On 20/11/2017 6:40 PM, Mike Dewhirst wrote: I have seen the two tickets and read the developer list thread[1]on this subject. Is there a best-practice approach to preventing usernames which are case-insensitively equivalent I'm hoping someone has achieved this and might be willing to

Re: ldap server authentication

2017-12-02 Thread Mike Dewhirst
On 1/12/2017 10:28 PM, pacopyc pacopyc wrote: Hi, I am a beginner django programmer. I would like to authenticate users of my web application to an ldap server (which has about 1000 users defined). Not all users of the ldap server must be able to access the web application (only 50 ldap user

Off-topic - venv problem in Windows 8.1

2017-12-04 Thread Mike Dewhirst
I did a pip freeze in a virtualenv and saw packages I should not have seen. So I checked sys.path as follows ... C:\Users\mike\envs\xxct3\train>..\Scripts\activate (xxct3) C:\Users\mike\envs\xxct3\train>python Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on

Re: Off-topic - venv problem in Windows 8.1

2017-12-05 Thread Mike Dewhirst
On 6/12/2017 12:04 AM, Jason wrote: How did you create the virtualenv in the first place? C:\Python36\python -m venv C:\Users\mike\envs\xxct3 or C:\Python27\Scripts\virtualenv C:\Users\mike\envs\xxct -- You received this message because you are subscribed to the Google Groups "Django us

[Solved] Off-topic - venv problem in Windows 8.1

2017-12-05 Thread Mike Dewhirst
On 6/12/2017 10:03 AM, Mike Dewhirst wrote: On 6/12/2017 12:04 AM, Jason wrote: How did you create the virtualenv in the first place? C:\Python36\python -m venv C:\Users\mike\envs\xxct3 I have completely re-venved and it is now working. I can't explain it. I always use a batch fi

Re: Unable to setup Django

2017-12-08 Thread Mike Dewhirst
Power shell is unnecessary. I'm not sure but I think it gives you privileges you don't want while developing. Anyway, find where activate.bat is and cd to the dir above the Scripts dir and enter ... $>scripts\activate And cross your fingers :) Connected by Motorola Nav Pat wrote: >So Im t

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 3:15 AM, Udit Vashisht wrote: I have an outside python function which reads a csv from web and fetch certain data in forms of tuple. So that i can use that tuple in my python models for choices in one of the fields. Till now i am running the function independently and copying the

Re: Help with Django Models

2017-12-13 Thread Mike Dewhirst
with specific names so the command can be executed like python manage.py fetch_web_values https://docs.djangoproject.com/en/2.0/howto/custom-management-commands/ Cheers Mike On Dec 13, 2017 19:12, "Mike Dewhirst" <mailto:mi...@dewhirst.com.au>> wrote: On 14/12

Re: Django field model for HTML parser?

2017-12-13 Thread Mike Dewhirst
On 14/12/2017 4:00 PM, drone4four wrote: Hi fellow Djangoistas: I'm back. Thank you Atonis for your help.  I suppose I can leave the WYSIWYG editor static files for later when I have alittle more experience.  For now though: how can I enable HTML markup to parse like it should?  The box wher

Re: I can't install easy install

2017-12-14 Thread Mike Dewhirst
On 15/12/2017 8:52 AM, Henry Ogunkomaya wrote: Hello guys! am new to Django. i have been trying to install  downloaded (pack)"easy install" for days now without any result. i try all the methods from video tutorials, but nothing still. Can any one help me with the "easy install" scripts, so i c

Re: Django field model for HTML parser?

2017-12-14 Thread Mike Dewhirst
They are listed in the docs. Django defaults to "bleaching" everything. mark_safe() on the other hand permits everything. Hence if you want to be selective about what you permit and what you don't, you need bleach plus mark_safe() On Thursday, December 14, 2017 at 12:26:37 AM UTC

Having trouble with django-filebrowser

2017-12-16 Thread Mike Dewhirst
I have tried both django-filebrowser and django-filebrowser-no-grappelli with django-tinymce4-lite The TinyMCE part is working fine in the Admin and trying to insert an image in the text is trying to work and if I pasted in a url it would probably insert the image it points to. The problem i

Re: having trouble with django models

2017-12-16 Thread Mike Dewhirst
On 16/12/2017 10:06 PM, Mukul Agrawal wrote: Hello, I am newbie to django. I was trying my hand on models. When i used the below code in models.py, "timestamp" and "updated" are not able visible on admin site. Is something wrong with the code? It looks OK to me. Have you included them in your

Re: having trouble with django models

2017-12-17 Thread Mike Dewhirst
fields you wish to display as indicated below and - based on Daniel's advice above - you might need to include ... readonly_fields = ['timestamp', 'updated'] On 17/12/2017 8:18 AM, Mike Dewhirst wrote: On 16/12/2017 10:06 PM, Mukul Agrawal wrote: Hello, I am newbie to dja

Still having trouble with django-filebrowser

2017-12-17 Thread Mike Dewhirst
ialog. I also uninstalled and reinstalled to no effect. Thanks for any help Mike On Saturday, December 16, 2017 at 7:04:34 PM UTC+11, Mike Dewhirst wrote: > > I have tried both django-filebrowser and django-filebrowser-no-grappelli > with django-tinymce4-lite > > The TinyM

Re: Still having trouble with django-filebrowser

2017-12-17 Thread Mike Dewhirst
evelopment verion of django-filebrowser? Yes. Installed from trunk. Same outcome. Here is a screenshot HTH Etienne Le 2017-12-17 à 15:48, Mike Dewhirst a écrit : An update. I adjusted settings ... FILEBROWSER_DIRECTORY = 'uploads/' FILEBROWSER_VERSIONS_BASEDIR = '_versions/

<    3   4   5   6   7   8   9   10   11   12   >