Re: How to properly implement counter?

2011-02-10 Thread Paul Bagwell
Model I've described is just an example. In the real world, I'm developing imageboard (chan). This is anonymous forum with sections. Each section needs to have its own post counter. It is very typical for all modern chans (wakaba, kusaba etc.). Wakaba just creates separate table for each section,

Re: How to properly implement counter?

2011-02-10 Thread Paul Bagwell
Imageboard: - When user creates new post, its counter is computed by (section_biggest + 1). - When user deletes a post, nothing happens to section counter: Post [id:55, pid:1] created Post [id:71, pid:2] created Post [id:71, pid:2] deleted Post [id:89, pid:3] created - Has separate counters for ea

OneToOne field versus model inheritance

2015-01-20 Thread Paul Royik
I have three models: Person, Client, Member Person is a base model, Client and Member are profiles for Person. class Person(AbstractBaseUser, PermissionsMixin): email = models.EmailField( verbose_name=_('email address'), max_length=255, unique=True, ) class Client

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-20 Thread Paul Royik
Try def __init__(self, *args, **kwargs): super(CustomContactForm, self).__init__(*args, **kwargs) self.fields.keyOrder = ['name', 'reason', 'email', 'body'] On Tuesday, January 20, 2015 at 11:26:01 PM UTC+2, Tobias Dacoir wrote: > > I'm using django-contact-form which allows me t

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-21 Thread Paul Royik
> > So pass the request > def __init__(self, request, *args, **kwargs): self.request=request super(CustomContactForm, self).__init__(*args, **kwargs) self.fields.keyOrder = ['name', 'reason', 'email', 'body'] -- You received this message because you are subscribed to

Select Field With Other option

2015-01-26 Thread Paul Royik
I need to build a form field with a special select field. Select field should have option other on which text field is shown. After entering value in textfield, it should be validated, saved and then refered to initial form. How this can be done? I'm trying to override MultiValueField and Mult

Re: forloop

2015-01-26 Thread Paul Royik
Inside view there is no forloop (unless you explicitly define it). forloop is defined only inside for loops in templates Actually your code is somewhat weird. You iterate all list until last without doing anything. It is more efficient to use slicing email = newleave.objects.all()[-1] # this is

Save one to one field manually

2015-02-01 Thread Paul Royik
I need to manually save OnetoOne field. I asked this question on stackoverflow. More details here: http://stackoverflow.com/questions/28262236/saving-onetoone-field-manually-in-django Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Save one to one field manually

2015-02-02 Thread Paul Royik
I solved the problem. See http://stackoverflow.com/questions/28262236/saving-onetoone-field-manually-in-django -- 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 d

Re: Import error - No module named http

2015-03-18 Thread Nivin Paul
... ▶ Local vars <http://192.168.12.59:8080/cdrimport/settings/fraudsummary/disconnect/?id=3#> - /home/akhil/Documents/NIVIN/NIVIN/svn/CrossFraudet/branches/V2.1.0/crossfraudet/cdrimport/views/fraud_summary_view.py in 1. import http

Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Paul Koepke
I'm running a Django app using uWSGI and nginx. I already saw in the uWSGI documentation that I should not run uWSGI as root. But does it matter if the user I run uWSGI has sudo access? Should I try to use a user that is not a sudoer or does it not really matter? -- You received this message b

nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
All, I was running django with Apache and mod_wsgi for a while. Now, I am planning to run django without virtualenv. Although, it seems virtualenv might help. http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html Any pointers? Performance issues? Best Regards, Paul

RE: nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
Collin, I will be running it with p3.4. How is the performance of it? Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail: p...@greenberg.pro Tel: 201-402-6777 Fax: 201-301-8876 Cell: 212-380-7343 Web: http

RE: nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
Bill, I see. However, I wanted to try uwsgi instead of mod_wsgi. I will be using nginx, not Apache. Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail: p...@greenberg.pro Tel: 201-402-6777 Fax: 201-301-8876 Cell: 212-380

RE: Segmentation fault

2014-08-08 Thread Paul Greenberg
Tianwei, This happened to me when I hosted a project on Amazon AMI. It is likely your machine does not have enough RAM memory. Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail: p...@greenberg.pro Tel: 201-402-6777 Fax

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
Hi Mike, I will be able to help you out. Are you local to US? Best Regards, Paul Greenberg, Esq. Law Office of Paul Greenberg 530 Main Street, Suite 102 Fort Lee, NJ 07024 E-mail: p...@greenberg.pro Tel: 201-402-6777 Fax: 201-301-8876 Cell: 212-380-7343 Web: http://www.greenberg.pro/ Twitter

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
Perhaps, OSL would work better in this case? http://en.wikipedia.org/wiki/Open_Software_License Open Software License The Open Software License (OSL) is a software license created by Lawrence Rosen. The Open Source Initiative (OSI) has certified it as an open-source license... Read more...

RE: OS license requirements

2014-08-11 Thread Paul Greenberg
open source license. After all, a license is a simple contract. A canned approach is not always better. Perhaps, you could let us know what is your project about? Regards, Paul From: django-users@googlegroups.com on behalf of Mike Dewhirst Sent: Monday

i18n and overriding django.auth translations

2014-09-02 Thread paul . connell
I've got some basic translations working in de_de (German), but it seems that django has brought it's own translations along for the ride after I compile. I has not translated 'Password' in my locale files but DJango is doing it automatically (I assume from the django.admin module?). That's f

Re: i18n and overriding django.auth translations

2014-09-03 Thread paul . connell
Well, it's a real situation - I removed the django.admin app from settings.py and then my translations worked - it's a basic occlusion - the django.admin translations seem to be used before my own translations when django.admin is enabled and my application has strings like 'Password' in them.

Many-to-many Relationship Between Django Apps Fails

2014-10-21 Thread Paul Childs
*What's been done so far:* - I was on Django 1.5 and upgraded to 1.6 (cannot go higher as we are on Python 2.6) and this did not solve the problem. - I have researched this issue to death and cannot seem to find a definite answer. Looking through the Django Project Bug Tracker, I h

Re: Many-to-many Relationship Between Django Apps Fails

2014-10-21 Thread Paul Childs
rride the save method of the DamageType model in order to assign a regexp if one does not exist.''' # if the tracked item does not have a reg_exp just use # the description if not self.reg_exp: self.reg_exp = self.description sup

Re: Many-to-many Relationship Between Django Apps Fails

2014-10-21 Thread Paul Childs
t; in names_to_path 1274. "Choices are: %s" % (name, ", ".join(available))) Exception Type: FieldError at /trending/trend/Exception Value: Cannot resolve keyword u'affectedpart' into field. Choices are: cgs_damage_code, description,

Re: Many-to-many Relationship Between Django Apps Fails

2014-10-21 Thread Paul Childs
gt; Hi Paul, > > Try putting 'trending' in INSTALLED_APPS. > > Collin > > -- 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 d

Re: Many-to-many Relationship Between Django Apps Fails

2014-10-21 Thread Paul Childs
Thanks man. This was a huge relief! On Tue, Oct 21, 2014 at 2:35 PM, Collin Anderson wrote: > Hi Paul, > > 1. How did you know!?! >> > I hack... kidding :). I suspected something wasn't getting loaded, and the > list of installed apps was in the traceback you posted.

Preventing race conditions when submitting forms

2014-11-25 Thread Paul Johnston
the second edit with an "edit conflict" message would be a start - although some intelligent merging would be even better. Thanks, Paul -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Preventing race conditions when submitting forms

2014-11-25 Thread Paul Johnston
a lot of work to do something better. Paul On Tuesday, November 25, 2014 6:59:15 PM UTC, Tim Chase wrote: > > On 2014-11-25 07:57, Paul Johnston wrote: > > Consider an e-commerce site, where Alice and Bob are both editing > > the product listings. Alice is improving descript

Re: Preventing race conditions when submitting forms

2014-11-26 Thread Paul Johnston
he form processing layer. Well, anyway, that's me just thinking aloud. Sounds like the beginnings of a plan for django-concurrency2. If I get a chance I may look at this in more detail. Thanks for the input guys! Paul On Tuesday, November 25, 2014 9:51:54 PM UTC, Cal Leeming wrote: > >

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

2015-01-03 Thread Paul Antropius
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 : HTTPError: HTTP Error 404: Not Found trying reque

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

2015-01-04 Thread Paul Antropius
Le dimanche 4 janvier 2015 00:16:33 UTC+1, Mike Dewhirst a écrit : > > 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 fo

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

2015-01-04 Thread Paul Antropius
Okay, it was just an old and obsolete custom security with my wikitools module, that prevents the code to access an external website under debug mode... It thus returned a 404 code, and the wikitools api was forcing the connection with this 5 seconds step pattern... Let's rock ! :-) BTW : I fi

Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2013-12-01 Thread Paul Whipp
I have test cases that pass when tested individually, pass when the full app is tested but fail when the tests for the entire project are run: (lsapi)~ $ django test Creating test database for alias 'default'... ...

Re: python virtual environment

2013-12-01 Thread Paul Whipp
Looks like you already have an active virtual environment but those instructions only install a few default things (like Django) into that environment. Therefore it sounds like your new virtual environment does not have all of the required python modules installed in it. There should be a requ

Re: Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2013-12-02 Thread Paul Whipp
ke I am going in the right direction? Thanks again for your help. Cheers, Paul On 2 December 2013 11:10, Russell Keith-Magee wrote: > > > On Mon, Dec 2, 2013 at 8:24 AM, Paul Whipp wrote: > >> I have test cases that pass when tested individually, pass when the full >>

Django Tutorial 5 - First Tests

2014-02-12 Thread Paul Sermon
So I'm working my way through the Django tutorials, and have got as far as the view tests. It seems that when running the test client, rather than returning data from an empty test database (is this what is meant to happen?) it is returning polls from the existing database, which has the polls

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
This is the tutorial: https://docs.djangoproject.com/en/1.6/intro/tutorial05/ I've followed the tutorials pretty much to the letter since tutorial one. Thanks for the help! -Paul On Wednesday, February 12, 2014 10:33:16 PM UTC, jondbaker wrote: > > You're correct in thinking

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
error > you're receiving and the command that causes it. > > JDB > > > On Thu, Feb 13, 2014 at 3:19 AM, Paul Sermon > > > wrote: > >> This is the tutorial: >> https://docs.djangoproject.com/en/1.6/intro/tutorial05/ >> >> I've followed

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
l05/#testing-our-new-viewwhich > demonstrates how to create test cases that inherit from TestCase that > can be found and executed by the Django test runner which will also handle > creating the test database for you. > > JDB > > > On Thu, Feb 13, 2014 at 10:20 AM, Paul Se

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
o polls message! That'll teach me for copying and pasting! Thanks for your help! -Paul On Thursday, February 13, 2014 6:30:34 PM UTC, jondbaker wrote: > > Cool, so we're making progress and you're using the test database now. > Since you have two tests failing, I'd comment

Best way to use Django with Knockout.js

2014-05-03 Thread Paul Rule
Hi, I was wondering if there are any good resources for demonstrating how best to use django with knockoutjs. I've come across a couple of projects which might help: http://www.django-rest-framework.org/ https://github.com/Miserlou/django-knockout-modeler I can see how I'd easily interact with

URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-21 Thread Spaceman Paul
My application works fine in runserver and in apache/wsgi mapped to root, but when I map wsgi to a directory, url lookups fail. E.g. Request URL: http://server/awma/times ... ^times$ [name='times'] ... The current URL, times, didn't match any of these. Every single URL in the (full) list fails

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-21 Thread Spaceman Paul
No that's what I've got. P. On Thursday, 22 May 2014 15:14:01 UTC+10, WongoBongo wrote: > > Maybe > > WSGIScriptAlias /awma /var/www/djangoapp/djangoapp/wsgi.py > > K > > On Wednesday, May 21, 2014 9:27:14 PM UTC-7, Spaceman Paul wrote: >> >> My app

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
Nothing in wsgi.conf. Relevant bits of apache conf: WSGIScriptAlias /awma /home/paul/src/awma-apache/internationalguidelines/wsgi.py Nothing in /var/log/apache2/error.log Access.log just says: 152.91.9.9 - - [23/May/2014:08:27:17 +1000] "GET /awma/ HTTP/1.1"

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
I've worked around it by creating another A-record and pointing each application to the server root of the respective virtual host, but this should not be necessary. On Thursday, 22 May 2014 23:50:57 UTC+1, Spaceman Paul wrote: > > Nothing in wsgi.conf. > > Relevant bi

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
erson using WSGI with a non-root mount point. P. On Friday, 23 May 2014 01:25:03 UTC+1, Spaceman Paul wrote: > > I've worked around it by creating another A-record and pointing each > application to the server root of the respective > virtual host, but this should not be necess

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
Ugh nevermind. Yes it's a bug - but in my code. I'll figure it out. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the example ^times$ pattern): > >

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
In case anyone else ends up with same problem, I was using request.path instead of request.path_info. P. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the ex

Possible Bug Regarding model choices and form hidden input?

2017-10-27 Thread Paul Kenjora
#x27;:0,* *}, follow=True)* *banner_xSelect a valid choice. 0 is not one of the available choices.* Anyone else seeing this? Works fine via browser, just unit tests are not coming back right. -- - Paul Kenjora - 602-214-7285 -- You received this message because you are subscribed to

Re: Possible Bug Regarding model choices and form hidden input?

2017-10-28 Thread Paul Kenjora
*I use: * Django version 1.7.0 - I know I know :) Python 2.7.13 - Paul On Sat, Oct 28, 2017 at 6:01 AM, Etienne Robillard wrote: > Which Python and Django versions do you use? > > Etienne > > Le 2017-10-27 à 23:27, Paul Kenjora a écrit : > > Hi, > > Wh

Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Hi, I am using requests package to send a post request to an API within my application. I am using the request as : *requests.post("https://xx.xxx.xxx.xxx/my-admin/api/api2";, data=data)* where "xx.xxx.xxx.xxx" is the IP of my server on which this API is hosted. When I am trying to call thi

Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
In some place I wrote that "However the very same API is returning proper result with both --- IP address and domain name". I would like to correct hat this scenario is working when I am hitting the API from POSTMAN. On Friday, November 10, 2017 at 5:15:20 PM UTC+5:30, Rahul Paul wro

Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Thanks James for your suggestion. So according to you, I must use the domain name and not the IP address anymore in my request. Thanks again. On Friday, November 10, 2017 at 11:09:59 PM UTC+5:30, James Schneider wrote: > > > > On Nov 10, 2017 3:45 AM, "Rahul Paul" > &

In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
Currently it's simple to configure a filter on a foreign key in the admin: `list_filter = ['theforeignkeyfield']` However in practice this is barely usable in most cases that I've encountered, since the admin uses RelatedFieldListFilter, which fetches the full list of objects from the DB and lo

Re: Newbie - Microservice in Django - Best place to start learning

2018-02-02 Thread Paul Tiplady
Assuming you're trying to build a REST API and not a HTML website, you should look at http://www.django-rest-framework.org/ as it provides a lot of djangonic convenience methods for building REST APIs with the Django ORM. On Thursday, February 1, 2018 at 9:16:47 AM UTC-8, pratibha sharma wrote:

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
That's a pretty inflexible solution though; what if I want to filter on multiple foreign keys, e.g. Tenant=Foo(id=1), Customer=Bar(id=200)? On Fri, Feb 2, 2018 at 12:57 PM, Andy wrote: > You should rather use search_fields instead of filtering together with the > sorting ability of the admin. Th

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Paul Tiplady
I've used that in a few admin pages, as far a I understand it just restricts the allowed values for a model's foreignkey field when editing a model instance. I don't see any way to use that to change how the `list_filter` functions -- am I missing something? Thanks, Paul On Fri, F

A first time programmer

2018-04-06 Thread Paul Baforh
Please programmers, how do I engage django because i get syntax error i type in this code - $ django-admin startproject mySite --- -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

no styling

2018-04-09 Thread Paul Baforh
Please, my django development page is without css. How do I go about it. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googleg

Re: A first time programmer

2018-04-17 Thread Paul Baforh
Thanks everyone for your replies so far. I have another prob: I'm trying to create a new file (.py) in my app using vscode but I get the error "permission denied writing to file" then followed by the directory of the base file -- You received this message because you are subscribed to the Goo

Re:

2018-05-05 Thread Paul Baforh
alright!! No problem!! feel free On Thu, May 3, 2018 at 12:26 PM, Muwanguzi Derrick < muwanguziderri...@gmail.com> wrote: > Hlo am a new django user I want be your friend for help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

about the integration of Django with ionic

2018-05-29 Thread sujan paul
I am a beginner in using Django and i'm integrating it to my ionic application . I have the python code and Ionic application but i need to know how can i integrate each other -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Fwd: Built In Template Tag Request

2016-04-27 Thread Paul Kenjora
doesn't need extra files and I can now make includes more generic. It would be a great compliment to the already existing with tag. -- - Paul Kenjora - 602-214-7285 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Post doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS

2016-05-24 Thread Paul Martin
You've added your Post model to MIDDLEWARE_CLASSES which is incorrect.You need to add your app name containing the post model to INSTALLED_APPS On Tuesday, 24 May 2016 13:54:04 UTC+1, meInvent bbird wrote: > > Performing system checks... > > System check identified no issues (0 silenced). > > Y

Django 1.10 How to Take form Inputs (ie field one + field two = field three) and auto update before submitting the form.

2016-08-13 Thread Paul Kudla
I am running django 1.10 and assume i will need to use java scripts, jquery or angularjs Simply put i have a decimal field that i want to add to another decimal field and place the answer in a third decimal field. I want this to be displayed on the fly as the form gets data inputed on the clie

Re: Django 1.10 How to Take form Inputs (ie field one + field two = field three) and auto update before submitting the form.

2016-08-15 Thread Paul Kudla
} > > > (The script don't work as is but should give the general idea) > This way, the user see instantly the effect of their change but your > application only work with safe value. > > I hope I didn't go too far off-path and that will be useful to you :)

Using hashids in django template

2016-08-18 Thread Paul Aswa
Is there means of encoding an id using hashids in django templates? -- 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

Re: Using hashids in django template

2016-08-18 Thread Paul Aswa
Being a newbie to python and django, this seems to be giving me problems On Thursday, August 18, 2016 at 2:57:56 PM UTC+3, ludovic coues wrote: > > You might be looking for this > https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/ > > 2016-08-18 12:57 GMT+

Re: Using hashids in django template

2016-08-18 Thread Paul Aswa
gt; def hashid(value): > return hashids.encode(value) > > and your template like that: > > {{ id|hashid }} > > I omitted some part that are in the doc, like making the filter > available in your template. The doc have more information on the > subje

Django and Lynda.com

2016-10-13 Thread Paul Handley
I have done everything correctly( and I have) why is this not working? Thanks, Paul -- 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+u

Re: Django and Lynda.com

2016-10-14 Thread Paul Handley
is no one to help you understand if the presenter makes a mistake. I'm looking around fr another site that is more user-friendly. Thanks a lot for your help! On Thursday, October 13, 2016 at 9:37:52 PM UTC-4, Paul Handley wrote: > > I am taking the Django and Python course on Lynda

How to set timezone in Django.

2019-07-09 Thread Paul Gureghian
Specifically in the official 'polls' tutorial from the docs. In the 'mysite.settings.py' file. I changed from 'UTC' to 'PST' and 'pst' and both faulted. thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Hi

2019-07-09 Thread Paul Gureghian
Can I ask a Django question here ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email t

Re: How to set timezone in Django.

2019-07-09 Thread Paul Gureghian
I used "America / Los_Angeles , and it worked. thanks On Tuesday, July 9, 2019 at 1:43:20 PM UTC-7, M. A wrote: > > 'PST' is not available in pytz > > The Pacific available timezones are : > > 'PST8PDT' > 'Pacific/Apia' > 'Pacific/Auckland' > 'Pacific/Bougainville' > 'Pacific/Chatham' > 'Pacific

If you run my server code

2019-07-10 Thread Paul Gureghian
do you get redirected to a results page after voting in the poll ? my /Django repo. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Collapsible elements in admin stopped working with latest release

2019-07-12 Thread Paul Michalski
l (or something) was removed in the most recent Django version. Does anyone know what might have changed? If something was changed, I think this is a bug – we shouldn’t have to modify the templates in the admin package to use IE11. This is my first post. Thanks for any comments or suggestions.

Re: Collapsible elements in admin stopped working with latest release

2019-07-12 Thread Paul Michalski
I can confirm this bug also occurs when using the minified file, collapse.min.js. I just updated our production server and the same bug popped up. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Automatic reverse migrations

2017-04-18 Thread Paul Tiplady
tests are OK. >> You may also be interested in running a test deployment in a >> testing environment prior to production. >> Don't know of a solution integrated into django. >> >> On Friday, April 14, 2017 at 2:26:51 PM UTC-4, Andrew Godwin wrote:

django.db.utils.OperationalError: server closed the connection unexpectedly

2017-05-31 Thread Bobby Paul
nalError: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. == DATABASES_DEFAULT = { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME'

Re: django.db.utils.OperationalError: server closed the connection unexpectedly

2017-05-31 Thread Bobby Paul
? Thanks and Regards Bobby Paul On Wednesday, May 31, 2017 at 5:14:29 PM UTC+5:30, Bobby Paul wrote: > > Dear All, > > I am getting this error message while trying to install psql database. > > File "setup.py", line 18, in > execute_from_command_line([

Restricting the user from closing the browser tab so that the server side APIs are called.

2017-05-31 Thread Rahul Paul
Hi, We are working on a django project in which we are developing a two way audio visual solution for the users. Now we have certain set of APIs that need to be called from JavaScript through ajax request when user ends the call through our end-call button. Some of these ajax calls are sequenti

Re: django.db.utils.OperationalError: server closed the connection unexpectedly

2017-06-01 Thread Bobby Paul
Thank you Antonis, Yeah, We have installed postgresql-8.4.20-7.el6.x86_64 Now we are checking the permission. Will touch you once it done. Thanks, Bobby Paul On Wednesday, May 31, 2017 at 5:14:29 PM UTC+5:30, Bobby Paul wrote: > > Dear All, > > I am getting this error message whi

HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
The *LOGIN_REDIRECT_URL* only allowing to redirect to a particular profile page. But in scenarios like where there are *students* and *teachers*, both of them need their specific profile page after login. Using* LOGIN_REDIRECT_URL*, both the teachers and the students are getting redirected to

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
ephen wrote: > You can consider redirecting to a URL that handles the request. > > That is a View function that checks if the user is a student or teacher, > then renders the respective profiles. > > Regards > > On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul wrote: > &

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-12 Thread Kuntal Paul
ase check this answer >> https://stackoverflow.com/questions/16824004/django-conditional-login-redirect >> >> On Sat, 11 Jul 2020, 18:22 Kuntal Paul, wrote: >> >>> Thank you for your response. I did this way and it was giving me a 405 >>> error. I couldn&#x

What will be best option

2020-08-14 Thread Manas Paul
I have been working on a project, where the project has a Model called Competition and under each completion I have a model called Artwork ( in foreign key relationship). I am using DRF and the problem I am facing is each artwork has a field called approved ( boolean ) and I want to retrieve a

Project setup

2020-09-04 Thread Kritika Paul
someone reply soon. -- Regards, Kritika Paul rkritikapau...@gmail.com +91-7905147674 -- 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-user

IntegrityError : AUTH_USER DJango 1.8

2015-09-21 Thread Jose Paul
Daer All, I am trying to run DJango 1.8 test cases . I am getting several IntegrityError error on AUTH_USER table . SQL generated by test case INSERT INTO "AUTH_USER" ("PASSWORD", "LAST_LOGIN", "IS_SUPERUSER", "USERNAME", "FIRST_NAME", "LAST_NAME", "EMAIL", "IS_STAFF", "IS_ACTIVE", "DATE_J

DJango 1.8 test case fails with IntegrityError error

2015-09-21 Thread Jose Paul
I am trying to run DJango 1.8 test cases with DB2 Several insert statement fails Here is the insert command generated by test case. INSERT INTO "AUTH_USER" ("PASSWORD", "LAST_LOGIN", "IS_SUPERUSER", "USERNAME", "FIRST_NAME", "LAST_NAME", "EMAIL", "IS_STAFF", "IS_ACTIVE", "DATE_JOINED") VALUES

Re: DJango 1.8 test case fails with IntegrityError error

2015-09-21 Thread Jose Paul
n27\lib\site-packages\ibm_db-2.0.5.1-py2.7.egg\ibm_db_dbi.py", line 1247, in _execute_helper raise self.messages[len(self.messages) - 1] IntegrityError: Statement Execute Failed: [IBM][CLI Driver][DB2/NT] SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=2, TABLEID=24,

Re: DJango 1.8 test case fails with IntegrityError error

2015-09-21 Thread Jose Paul
Simon > > Le lundi 21 septembre 2015 07:14:39 UTC-4, Jose Paul a écrit : >> >> I am trying to run DJango 1.8 test cases with DB2 >> >> Several insert statement fails >> >> Here is the insert command generated by test case. >> >> INSERT I

E-commerce

2015-09-24 Thread Paul Savignano
Hi Django-users, I am somewhat new to Django and have a client interested in an online store/e-commerce for their foodservice operation. Are there any tutorials you can recommend on this subject? Thanks in advance for any help you may offer! *Paul* -- You received this message because you are

Re: E-commerce

2015-09-25 Thread Paul Savignano
Thanks luisza14 ! On Thursday, September 24, 2015 at 1:30:46 PM UTC-7, luisza14 wrote: > > > http://oscarcommerce.com/ > > or https://www.djangopackages.com/grids/g/ecommerce/ > > 2015-09-24 13:42 GMT-06:00 Paul Savignano : > >> Hi Django-users, >> I am some

Re: E-commerce

2015-09-30 Thread Paul Savignano
Thanks Ezequiel! I'll check it out. *Paul* On Sun, Sep 27, 2015 at 12:44 PM, Ezequiel Bertti wrote: > http://www.getlfs.com/ > > On Fri, Sep 25, 2015 at 8:59 PM, Paul Savignano > wrote: > >> Thanks luisza14 ! >> >> On Thursday, September 24, 20

Django 1.8 format error

2015-11-10 Thread Jose Paul
I am getting following errors when I am tried DJango 1.8 test cases against DB2 .What can be the cause for this ?. Can someone comment on this please . == FAIL: test_decimal_numbers (utils_tests.test_numberformat.TestNumberFormat

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

2015-11-11 Thread Jose Paul
getting following error ,can someone help me to understand this . compiled_result = compile_func(self, token) File "C:\Python27\lib\site-packages\django\template\defaulttags.py", line 1140, in load (taglib, e)) TemplateSyntaxError: 'subpackage.echo' is not a valid tag library: T

TemplateDoesNotExist: first/test.html DJango 1.8

2015-11-12 Thread Jose Paul
I am getting several TemplateDoesNotExist .like below . == ERROR: test_pickling (template_tests.test_response.SimpleTemplateResponseTest) -- Traceback (most rece

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

2015-11-12 Thread Jose Paul
load.py", line 39, in test_load06 output = self.engine.render_to_string('load06') File "C:\Python27\lib\site-packages\django\template\engine.py", line 208, in render_to_string On Thursday, November 12, 2015 at 12:31:40 AM UTC+5:30, James Schneider

Template filter like truncatewords that truncates on a sentence boundary?

2015-12-21 Thread Paul Souders
I’m looking for a template tag something like truncatewords that will truncate a string (usually: TextFields) on a sentence boundary (double newline, sentence punctuation etc.). I’d prefer to implement this as a t

Re: reading CSV file with non ASCII characters

2016-02-06 Thread paul . hermeneutic
On Sat, Feb 6, 2016 at 5:38 AM, Tim Chase wrote: > On 2016-02-06 03:06, elcaiaimar wrote: >> import unicodecsv as csv >> >> csvfile=open("mediosdigitales.csv") > >> > reader = csv.DictReader(open("file.csv", "rb")) > >> reader = csv.reader(csvfile, encoding='utf-8', delimiter=',') Do you actually

Re: Hello Everyone !

2016-02-20 Thread paul . hermeneutic
On Sat, Feb 20, 2016 at 4:43 AM, Parth Shah wrote: > I am new to Frameworks . All I know is Basic Python. > How to get Started Please help ! Since you found the Django mailing list, I assume you are familiar with their web site. On the main page there is a link to "Get started with Django." http

<    1   2   3   4   5   6   >