Deploy Model Exponential Smoothing

2022-06-29 Thread Evan Sianipar
Hi everyone. Has anyone in this group implemented the exponential smoothing model using Django? If so, can I ask for help submitting project documentation for reference? Thank you in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Occasional FieldError for a field that really does exist

2017-05-04 Thread Evan Heidtmann
Hello Django friends, My app, running in production with uwsgi, very occasionally will crash because of a FieldError on a (valid) reverse ForeignKey relationship field. Without any code changes, other requests will succeed. Tests that cover this code path always pass. The two models are

Re: Upgrading a django 1.2 Alpha site to 1.10 final site, passwords don't work

2016-10-04 Thread Evan Roberts
Thank you Tim, the pointer was just I needed. If anyone runs into this issue you will also need to update the auth_user table to allow NULLs in the last_login date. See this defect for details https://code.djangoproject.com/ticket/24679 -- You received this message because you are subscribed

Upgrading a django 1.2 Alpha site to 1.10 final site, passwords don't work

2016-09-30 Thread Evan Roberts
) and then force them to change their passwords (storing them using new hash)? Best Regards, Evan R. -- 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 dj

Re: Trying to use Django 1.9.5, django_pyodbc, MS SQL Server 2012 on 64bit Windows 7

2016-08-11 Thread Evan Roberts
Thanks for the help and guidance. I found a solution. I installed these libs and was able to connect: Django (1.9.9) django-pyodbc-azure (1.9.9.0) pip (8.1.2) pyodbc (3.0.10) I connected using these settings: DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'HOST':

Re: Trying to use Django 1.9.5, django_pyodbc, MS SQL Server 2012 on 64bit Windows 7

2016-08-11 Thread Evan Roberts
> > Hi John, > Excellent suggestion. Using python shell and pyodbc I was able to connect and perform several simple queries. Just worked, no heroics needed. I'm fairly sure my problem lies in django_pyodbc, it is making sure the connection to the database is sane. I'm not sure the support

Re: Trying to use Django 1.9.5, django_pyodbc, MS SQL Server 2012 on 64bit Windows 7

2016-08-11 Thread Evan Roberts
> > Hi Mike, Thanks for the suggestion. Yes, postgres would be a good answer, but not really a possibility at this point. Let me give you the back ground. I inherited this project. The original project is written using django 0.95 and SQL Server 2003. The project that was written by a

Trying to use Django 1.9.5, django_pyodbc, MS SQL Server 2012 on 64bit Windows 7

2016-08-10 Thread Evan Roberts
I'm struggling to get a project going. I'm new to python and django. Is django_pyodbc supported on Python 3.5.1 and django 1.9? If not could you suggest a combination of python & django that is known to work with MS SQL Server 2012? Here are the details of my virtual environment windows 7

How to delete a OneToOneField reverse relation?

2015-12-19 Thread Evan Heidtmann
lot! Evan -- 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

Transitioning existing login portal to Django

2015-12-01 Thread Evan Palmer
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 of custom Python code (hashing passwords, managing user accounts, DB connections,

Re: How to use selenium test against different browsers using LiveServerTestCase

2013-09-26 Thread Evan Leis
Alright, tested tried and True: The following code provides the ability to decorate tests so that a whole list of drivers is used... see the docs for examples... import functools def test_drivers(pool_name='drivers', target_attr='selenium'): """ Run tests with `target_attr` set to

Re: user authentication with extended (AbstractUser) user model

2013-06-20 Thread Evan Stone
Thanks for opening the ticket and thanks so much for the explanation as well! -evan On Wednesday, June 19, 2013 7:13:04 PM UTC-5, Russell Keith-Magee wrote: > > > On Thu, Jun 20, 2013 at 4:16 AM, Evan Stone <ev...@aquapony.com > > wrote: > >> Sure thing. Here ar

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
Also, thank you again! On Wednesday, June 19, 2013 3:16:05 PM UTC-5, Evan Stone wrote: > > Sure thing. Here are the snippets that gave me pause: > > "Think carefully before handling information not directly related to > authentication in your custom User Model. > > It

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
; On Tuesday, June 18, 2013 6:34:16 PM UTC-5, Russell Keith-Magee wrote: > > > On Tue, Jun 18, 2013 at 11:37 PM, Evan Stone <ev...@aquapony.com > > wrote: > >> Russ, >> >> Thanks so much for getting back to me! I shouldn't have posted that >> wi

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Evan Stone
model example in the docs. I was really reluctant to do so earlier because the docs make it sound like everything is pain moving forward with a custom user model. Is it? On Monday, June 17, 2013 6:50:23 PM UTC-5, Russell Keith-Magee wrote: > > > On Mon, Jun 17, 2013 at 10:31 PM, Evan

user authentication with extended (AbstractUser) user model

2013-06-17 Thread Evan Stone
Per the docs for Django 1.5, I have attempted to broaden the range of data held in the default user model by making an extended user model with the AbstractUser class. I made the model (called "Client") and listed it in settings.py as the AUTH_USER_MODEL. Syncdb took it and it worked great.

Re: Saving browser output as pdf

2013-02-23 Thread Evan Brumley
Have a look at wkhtmltopdf for easy server side generation of PDFs. It's not perfect, but it seems to be the best option out there at the moment. I'm also hearing good things about PhantomJS, though I haven't tried it out myself. Both options are essentially headless versions of Webkit - they

Re: Happy new year

2013-01-02 Thread Evan
Happy new year from Vietnam, wish you guys great things. On Tuesday, January 1, 2013 4:42:13 AM UTC+7, cingusoft wrote: > > Happy new year from spain to all django lovers. > I wish you a new year with tons of django projects. > > Cheers > Cingusoft > BlackBerry de movistar, allí donde estés

Re: Django testing strategy

2012-10-05 Thread Evan Brumley
django-dynamic-fixture can also help a lot in this situation: http://paulocheque.github.com/django-dynamic-fixture/ Certainly beats having to futz around with fixtures. On Friday, October 5, 2012 3:49:19 AM UTC+10, Daniele Procida wrote: > > I have started writing my first tests, for a project

django-report-tools - feedback wanted!

2012-08-25 Thread Evan Brumley
first time releasing a django/python package, so I'm sure I've screwed things up in lots of interesting ways. I'd love any feedback anyone can offer! Kind regards, Evan -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: key error in templates - solved

2011-11-12 Thread Evan Reiser
I had the same thing happen to me and this was the only post I found on the internet that mentions it. Note to other people who have this problem: *Be careful passing instances of model objects into celery tasks since they get pickled and your FileField fields will probably be removed via

Django SEO - feedback

2011-05-22 Thread Evan Ingam
I am trying to evaluate whether to go with Django SEO (http://django- seo.readthedocs.org/en/latest/contents.html) or to create my own by embedding the relevant meta data fields as values in the models. Doing a search across the threads, there are not too many discussions on this. Looking for

output shapefiles

2010-10-12 Thread Evan Bowling
ds = DataSource(world_shp) >>> ds.save('data/TM_WORLD_BORDERS-0.3_new.shp') I'm working on creating an application where users can create their own dataset using OpenLayers or Google Maps, and I would like to create an option to export the data in a shapefile format. Thanks, Evan I am Django (and s

Re: adding user instance to the comments constructor for a dynamic comment form

2010-08-29 Thread Evan H. Carmi
On Sun, 29 Aug 2010 16:08:45 -0700 (PDT) Cody Django wrote: > I'd like to have the comment form contain a captcha if the user is > logged in. Do you mean "have the comment form contain a captcha if the user *is not* logged in? -E -- You received this message because you

Re: RadioButton Form Validation

2010-08-02 Thread Evan Ferree
s group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-user

saving an object twice

2010-03-19 Thread Evan H. Carmi
attribute 'last_editor_str' error. If I can clarify anything please let me know, Thanks, Evan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, s

geodjango Point distance

2010-02-07 Thread Evan Bowling
Hey all, I am trying to calculate the spherical and spheroidal distance between two points that aren't stored within any model. I found this post from a few years ago and was wondering if it was resolved: http://www.mail-archive.com/django-users@googlegroups.com/msg40120.html >>> from

very basic beginners question

2009-01-08 Thread Evan
This is probably the most basic question in the history of the group. Still, I googled the error message both in this group and in google at large and went through the first 5 pages, and didn't see anything. i installed django a few weeks ago. i'm pretty sure it's installed correctly. i start

limiting admin's access on a per site basis

2008-12-01 Thread Evan Reiser
ost django discussions, so I apologize in advance if this has been discussed (recently) on this discussion group. Thanks in advance for your advice -Evan Reiser GamerNook.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: nested applications and syncdb question

2008-09-25 Thread Evan
i think he means like this: +application | +-part1 || | +-models.py | +-part2 || | +-models.py | +-urls.py | +-views.py On Sep 25, 4:01 pm, Stephen Sundell <[EMAIL PROTECTED]> wrote: > I am trying to create one application with

Re: keeping counts of verbs (downloads, comments, ...)

2008-09-18 Thread Evan
for very high traffic (100+ requests/sec) I would suggest using memcache to store the changes for #downloads / views. On each action (view or play or download or whatever) increment the variable in memcache (it has a fast function to do this) Then once every 1/5/15/60 seconds or so pull the

Re: Paginator loads entire table?

2008-09-16 Thread Evan
TypeError if object_list.count() requires arguments +# (i.e. is of type list). +self._count = len(self.object_list) return self._count count = property(_get_count) Note to self: upgrade django and do more research before spamming the list :) Thanks for the h

Paginator loads entire table?

2008-09-16 Thread Evan
Hey Guys I noticed one of my pages taking over 50seconds to load, and found the problem out the problem was the paginator loading a lot more rows than needed. I was wondering if this is how the paginator is supposed to work or if I'm doing something incorrect. Here's the view i'm using def

Where is the source code for Practical Django Projects?

2008-07-09 Thread Evan H. Carmi
Hi, I am reading Practical Django Projects but am unable to find the online source code. Does anyone know where this is located? I would think that it would be at http://www.apress.com/book/view/1590599969. However, that doesn't seem to be the case. Thanks, Evan

Re: files xls

2008-04-10 Thread Evan
I used xlrd to import form excel, it did everything i wanted it to do On Apr 9, 9:56 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 9, 2008 at 5:44 PM, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > There's also xlrd: > > >http://www.lexicon.net/sjmachin/xlrd.htm > > XLRD seems to have

Re: Track number of hits on object

2008-04-03 Thread Evan
Slightly off topic, but might be relevant: I'm having a similar dilemma in some of my projects. I'd also like to track the number of views a page (or object i guess) has, but i'm worried about performance. For highly viewed pages (1000 hits /hr+) I'd like to take advantage of caching, I

embedding django-contact-form in a generic view

2008-03-26 Thread Evan H. Carmi
is the simplest way to achieve this. Thank You, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Re: solving fixture data conflicts

2008-03-04 Thread Evan H. Carmi
n I go about manually deleting the content types? Is there something I should look for in my file exported with dumpdata? Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

solving fixture data conflicts

2008-03-03 Thread Evan H. Carmi
olve it. I only ran syncdb before loaddata, and did not create any content. Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

fastcgi problem: runfcgi not creating socket file

2008-02-11 Thread Evan H. Carmi
nformation that will help me get this running? Or anything else I should do? Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

truncating posts with markdown

2007-09-02 Thread Evan H. Carmi
this? Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

request.path in a context processor

2007-09-01 Thread Evan H. Carmi
Hi, Here I have a context processor --> http://dpaste.com/18402/ I have {{ base_path }} in one of my templates but it isn't returning anything. I am not sure if I can use request.path the way I am using it. Any ideas? Thanks, Evan --~--~-~--~~~---~--~~

type object 'HtmlFormatter' has no attribute 'encoding'

2007-08-18 Thread Evan H. Carmi
eturn value def save(self): self.body_html = self.markup(self.body) super(Entry,self).save() I was trying to save a post with the following content: `print "hello world"` I am using a PostgreSQL database. Thanks, Evan --~--~-~--~~-

Pygments + Markdown

2007-08-13 Thread Evan H. Carmi
h print hello world I want markdown to find my code blocks or code spans and then let them be colored by pygments. If I turn use_markdown to False, pygments works. If it is True, pygments doesn't work. Maybe there is a problem with the replaceWith() markdowned_code and it isn't getting changed in s

database table doesn't exist

2007-08-11 Thread Evan H. Carmi
seems like django wants to see a blog_entry_tags table in the database but it isn't there. Maybe a problem with the ManyToManyField? Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: refreshing won't reload page

2007-07-22 Thread Evan H. Carmi
Florian Apolloner wrote: > After editing your code, you will need to touch fcgi file Can you be more explicit. I know the location of a lighttpd.sh init file. But I am not sure if there is a fcgi file somewhere? Evan --~--~-~--~~~---~--~~ You recei

refreshing won't reload page

2007-07-21 Thread Evan H. Carmi
think that it is my browser because refresh should not load from the cache. Does lighttpd or django cache things automatically? Can I turn this off during development? Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Best practices to provide Django on a shared host

2007-07-05 Thread Evan H. Carmi
fers Django hosting. There is an install script that will setup Django for you: http://textusers.com/wiki/Installing_Django Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

admin css/images disappeared

2007-06-19 Thread Evan Carmi
For an example the login screen: http://binarymanipulations.com/admin/ Any help would be greatly appreciated, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Generic Views: "Could not parse the remainder: % object.title %"

2007-06-15 Thread Evan H. Carmi
ppreciated. Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

Re: Creating a current path Context Processor

2007-06-06 Thread Evan H. Carmi
James Bennett wrote: > On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: >> I don't know how to pass the context processor with HttpResponse so my >> template can do the ifequal. If someone can send me in the right >> direction it would be glorious. > > Have a

Creating a current path Context Processor

2007-06-03 Thread Evan H. Carmi
with HttpResponse so my template can do the ifequal. If someone can send me in the right direction it would be glorious. Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Creating a Blog: combining seperate parts

2007-05-03 Thread Evan H. Carmi
it would be great. Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

Re: Tutorial: Can't see my polls

2007-04-13 Thread Evan H. Carmi
e > I looked at that. My poll_detail.html is: -- {{ poll.question }} {% if error_message %}{{ error_message }}{% endif %} {% for choice in poll.choice_set.all %} {{ choice.choice }} {% endfor %} - So to me it looks as if my form action is how

Tutorial: Can't see my polls

2007-04-12 Thread Evan H. Carmi
d a little on #django but to no avail. Thanks, Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from th