Re: Use one correspondig database user for each application user

2017-07-21 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates. On 7/11/17 6:10 AM

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

2017-05-31 Thread Fred Stluka
the API    call would have done, but only if the keep-alive calls stop coming    in. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of servic

Re: Class based view without rendering form

2017-05-29 Thread Fred Stluka
e response look exactly like the original page, so it's not obvious to the user that a full page request was done.  But, it sounds like you've already decided you don't want to do that. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: best practices for handling charts

2017-05-23 Thread Fred Stluka
! See my quick summary of it, with lots of dynamically generated examples, here: - http://bristle.com/Tips/Internet.htm#google_chart_api --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc

Re: audit trail functionality in database model

2017-01-22 Thread Fred Stluka
. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: audit trail functionality in database model

2017-01-22 Thread Fred Stluka
FOR EACH ROW BEGIN     -- Purpose: Inserts an audit record into audit table.     --     -- MODIFICATION HISTORY     -- Person    Date   Comments     -- ----- -- ---     -- Fred Stluka   2/12/2007  Original v

Re: audit trail functionality in database model

2017-01-21 Thread Fred Stluka
ld be easy to bypass the audit table by doing a direct INSERT, UPDATE, or DELETE to a primary table. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
Mike, Good info.  Yeah, keep experimenting and report what you find here.  Hopefully someone will jump in with a definitive answer for you. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
' in sys.argv if RUNNING_UNIT_TESTS:     DATABASES['default'] = {     'ENGINE': 'django.db.backends.sqlite3',     } Any other ideas, anyone? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle

Re: how to do ces monitoring on django application

2017-01-17 Thread Fred Stluka
Anjali, What do you mean by "ces monitoring"?  I've never heard of it. When I searched: - http://google.com/search?q=ces+monitoring I found some references to IBM products. --Fred Fred Stluka -- mailto:f...@bristle.com --

Re: Django search

2017-01-17 Thread Fred Stluka
label and the text of the checkbox label to be combined somehow to form the search string? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
uring development." --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or

Re: How to make a queryset into a database, starting from a template html

2017-01-17 Thread Fred Stluka
Carlobo, If you want the nation field to be given a value as soon as a a dialing prefix is entered, without posting the page to the web server and retrieving a new page, you're going to have to use _javascript_ and the perhaps the technique called Ajax.

Re: Odd problem: some database updates do not appear on other pages until server restart

2017-01-16 Thread Fred Stluka
.  We got burned by and it and put in some time to diagnose it.  Then we found the above link that warns of one of the problems. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.

Re: multiple databases - two questions

2017-01-03 Thread Fred Stluka
from one DB to another with each DB generating its own set of auto-incremented PKs would have been a problem. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad

Re: multiple databases - two questions

2017-01-02 Thread Fred Stluka
/en/dev/topics/db/multi-db/#topics-db-multi-db-routing --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls

Re: localStorage to save answer to form until it is sent to server

2017-01-02 Thread Fred Stluka
the occasional calls based on a _javascript_ timer or something.  Many web-based tools use this technique.  For example, Google Docs. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http

Re: Admin - saveasnew to another database

2017-01-02 Thread Fred Stluka
best answer to your problem. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Window

Re: Help with django form an ajax, error 500

2016-08-21 Thread Fred Stluka
, or anything else. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Unable to get tests to work

2016-08-19 Thread Fred Stluka
for tests that don't exist? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows

Re: Unable to get tests to work

2016-08-17 Thread Fred Stluka
aybe something to do with "refreshes"?  The test trace shows it trying to run testcase "refreshes.backups.tests", but in the manual import you did from the python shell, you only import "backups.tests" --Fred Fred Stluka -- mailto:

Re: Unable to get tests to work

2016-08-17 Thread Fred Stluka
Matt, Drop the "s" from "tests": ./manage.py test backups --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to

Re: How to save one field value from a model to another field of a linked model.

2016-08-17 Thread Fred Stluka
Md. Ohiduzzaman, Looks good so far.  What happens when you try it? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Database data caching in Django?...

2016-08-17 Thread Fred Stluka
like I may be missing something obvious. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: Forcing Localization

2016-08-16 Thread Fred Stluka
'     '%d %B %Y',   # '25 October 2006'     '%d %B, %Y',  # '25 October, 2006' ] --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Re: Testing if a view have an html element with at least one attribute

2016-08-03 Thread Fred Stluka
if there any pros/cons vs lxml, but it works great for us! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls

Re: Is it possible to share a DB between Django and another application

2016-07-21 Thread Fred Stluka
use. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Email List

2016-07-18 Thread Fred Stluka
sg += u' during step: "' + progress + u'"'     exception = e     finally:     if not success:     raise EmailException(msg, exception) --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: Slow Django dev server reload

2016-07-05 Thread Fred Stluka
ld be deleted?  We tend to get rid of our dead ones pretty quickly because PyCharm shows them as grey when they're not needed. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://br

Re: unindent does not match any outer indentation level

2016-07-05 Thread Fred Stluka
this line:             def __unicode__(self): which should be indented exactly as much as the line:     def get_absolute_url(self): --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, I

Re: How can i add my django project to Bitbucket ?

2016-07-05 Thread Fred Stluka
Deepak, Bitbucket has pretty good documentation, including a Getting Started section.  Should tell you all you need to know.  See: - https://www.google.com/search?q=bitbucket+getting+started --Fred Fred Stluka -- mailto:f...@bristle.com

Re: Slow Django dev server reload

2016-07-04 Thread Fred Stluka
Mac. To narrow down the problem, I suggest you use the -v option:     % python -v manage.py runserver and watch to see what seems to be taking so long. Any other suggestions, anyone? --Fred Fred Stluka -- mailto:f...@bristle.com -- http

Re: Slow Django dev server reload

2016-07-04 Thread Fred Stluka
Hildeberto, No, the number of migrations does affect how long it takes to run automated tests, but should not affect how long it takes the dev server to start. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred

Re: Slow Django dev server reload

2016-07-03 Thread Fred Stluka
Krishna, How long is "a long time"?  I have a project of ~200K lines of python/django code.  The dev server reloads in a second or so. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, I

Re: Recommended courses/materials for Python/Django course...

2016-06-19 Thread Fred Stluka
Thanks for the feedback! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: Recommended courses/materials for Python/Django course...

2016-06-17 Thread Fred Stluka
Ludovic, Thanks for the tip!  I'll check them out. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source

Recommended courses/materials for Python/Django course...

2016-06-15 Thread Fred Stluka
  - edX   - Alison   - Lynda   - NewCircle.com Any advice?  Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Re: Reportlab no module named pdfgen

2016-05-26 Thread Fred Stluka
David, It works fine for me.  Must be something about your environment. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Re: Moving django app(nginx server) from iMac to Linux environment

2016-05-20 Thread Fred Stluka
a pip freeze on one and a pip install -r on the other? Nothing left to do. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service

Re: Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-04-29 Thread Fred Stluka
ons.  Also, you'll quickly get a feel for Django's power if you go through the on-line tutorial at: - https://docs.djangoproject.com/en/dev/intro/ Enjoy! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-20 Thread Fred Stluka
to unicode() call? Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows

Re: No Downtime Code Releases

2016-04-19 Thread Fred Stluka
hiding the maintenance page, so we're sure everything gets reloaded cleanly. This has also been a good idea as we've added more caching: - Template files - Fully assembled pages - DB data - etc. Hope this helps, --Fred Fred Stluka -- mailto:f

Re: PyCharm not stopping at breakpoint

2016-04-18 Thread Fred Stluka
Holy Heisenberg Uncertainty Principal, Batman!" --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences

Re: Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Fred Stluka
Stephen, Perfect!  Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Any way to tolerate Unicode w/o changing '' to u''?...

2016-04-14 Thread Fred Stluka
the encoding of Unicode string literals (u''), not regular string literals (''):     # -*- coding: utf-8 -*- Any suggestions?  Much appreciated.  Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software

What Python/Django code checkers do you recommend?...

2016-04-08 Thread Fred Stluka
- QuantifiedCode    https://www.quantifiedcode.com/ My IDE is PyCharm, which has the ability to check some things, but I haven't yet investigated or configured it much. What do you recommend?  Any good or bad experiences to share? Thanks! --Fred Fred

Re: Django Forms vs Angularjs

2016-04-02 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Migrating older 1.4 project to 1.9

2016-03-30 Thread Fred Stluka
learn to this thread. Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2016-03-29 Thread Fred Stluka
Good explanation, Michal! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Re: Forms in Django

2016-03-20 Thread Fred Stluka
to export and import DDL. Django did it all for us. Suddenly the entire regression test suite runs in 30 seconds instead of 75 minutes. Really nice! --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred

Re: Forms in Django

2016-03-19 Thread Fred Stluka
, max_length = 50, label = u'', widget = forms.TextInput( attrs={ 'class' : 'form-control', 'id' : 'inputSuccess5', 'placeholder' : 'Phone', } ), ) --Fred Fred

Re: Forms in Django

2016-03-19 Thread Fred Stluka
Stanislav, Try these: {{ form.title.value }} {{ form.title.label }} {{ form.title.errors }} etc. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com

Re: Forms in Django

2016-03-18 Thread Fred Stluka
dinarily friendly and helpful also. Enjoy! --Fred -------- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates. -

Re: variable to a template

2016-03-02 Thread Fred Stluka
Luca, You can't nest a variable evaluation (via {{}}) inside a tag execution {%%}. But you can put them side by side to achieve the effect you want: '{% static "mysite/scorr" %}'/{{a}}' --Fred ---- Fred Stluka -

Re: how to deploy python/django application in debian/apache?

2016-02-10 Thread Fred Stluka
files? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Scaling Django

2016-02-03 Thread Fred Stluka
ce from RevSys" http://us5.campaign-archive1.com/?u=a8d4be66d1927077a9255182d=f0fc046554=c90970e145 http://www.revsys.com/12days/finding-sources-of-slowness/ https://highperformancedjango.com/ http://talks.caktusgroup.com/djangocon/2013/scaling/

Re: Does anyone have good results connecting Django to Mysql on localhost and windows 7?, me not.

2016-01-26 Thread Fred Stluka
Carlos, Any advantage of pymysql over MySQLdb (MySQL-python)? - http://sourceforge.net/projects/mysql-python/ --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http

Re: Access denied for MySQL user in Django

2016-01-19 Thread Fred Stluka
Galil, Try this also: mysql> use mysql; mysql> delete from user where host='%' and 'user=''; mysql> flush privileges; --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Soft

Re: Access denied for MySQL user in Django

2016-01-14 Thread Fred Stluka
uest user when it had a username and password that it was supposed to be using, but for some reason it was. Deleting the guest user from MySQL fixed it for me, and is a good idea for security reasons anyhow. --Fred ---- Fred Stluka --

Re: how do I .............?

2016-01-13 Thread Fred Stluka
python manage.py shell --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: django-admin.py startproject mysite

2015-11-10 Thread Fred Stluka
Muhammad, Use the command ifconfig (Linux, Mac) or ipconfig (Windows) to see your local IP address. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com

Re: How do I server my app in apache in subdirectory?

2015-11-10 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates. On 11/10/15 9:39 AM

Re: Accessing Django test client in setUpClass

2015-01-29 Thread Fred Stluka
Nicole, If you can't access self.client of TestCase, you can always allocate one yourself as: c = Client() See details in: - http://www.dougalmatthews.com/2010/Jan/20/testing-your-first-django-app/ --Fred Fred Stluka

Re: Downloading thumbnails and replacing them with full images

2015-01-24 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Recommendations for hosting service?

2015-01-06 Thread Fred Stluka
+1 for AWS. Been using it for years. Keeps getting cheaper and better. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open

Re: Content using {% include %} not appearing on detailed page Django

2014-12-16 Thread Fred Stluka
s. --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Window

Re: ANN: Django website redesign launched

2014-12-16 Thread Fred Stluka
styles, colors, fonts, presentation of info? Or is there a change to the content or the navigation, as well? Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http

Re: Can anyone give me a suggestion or a recommendation as to how I can access the current user's username in the models.py?

2014-12-14 Thread Fred Stluka
by separate threads that share the same memory, and presumably the same signals and callbacks. Thoughts? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com

Re: I can't syncdb via django_pyodbc of Django.

2014-12-11 Thread Fred Stluka
e;' 'UID=my_username;' 'PWD=my_password') >>> conn ### Hope this helps! --Fred Fred Stluka -- mailto:f...

Python/Django programmers needed (telecommute)...

2014-12-04 Thread Fred Stluka
about a month or so. Telecommute with weekly status meetings in Radnor PA, and ad-hoc local co-working sessions with the dev team. Interested in either one, please let me know. --Fred ---- Fred Stluka -- mailto:f...@bristle.com -

Re: Upgrading Django (to 1.7)

2014-11-26 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Upgrading Django (to 1.7)

2014-11-26 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Image input missing from POST request

2014-11-26 Thread Fred Stluka
? Have you tried specifying multiple forms? Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls

Re: Web and mobile app with Django? Kivy? sth else?

2014-11-24 Thread Fred Stluka
://helphopelive.org --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Deploying Django project

2014-11-21 Thread Fred Stluka
such a script of his own. I don't type all of those commands each time. I just type: *pub* --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad

Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Fred Stluka
tacking, hiding/showing, etc. Anything is possible. --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates.

Re: Deploying Django project

2014-11-20 Thread Fred Stluka
messages, prompts, confirmations, etc. Also, some of these steps are combined into a remote script that runs on the server to reduce the number of "ssh -t sudo" commands I would otherwise have to do. But, that's the gist of it. Hope this helps! --Fred ----

Re: HStoreField can't adapt type 'dict'

2014-11-13 Thread Fred Stluka
reading them as email, not at the Google Groups Web site. Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source

Re: how to test an application that's using a legacy database

2014-11-10 Thread Fred Stluka
if settings.RUNNING_UNIT_TESTS else False --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: Loading fixtures in Django 1.7

2014-11-09 Thread Fred Stluka
Leonard, In Django 1.4, you would add this code to the forwards() method of the migration: from django.core.management import call_command call_command("loaddata", "") --Fred ---- Fred Stluka -- mai

Re: createsuperuser tells me its been skipped due to not running in a tty and then tells me i can do it manually by running createsuperuser. Very confused

2014-11-09 Thread Fred Stluka
ssh -t as I've often had to do when running sudo via ssh. See: - http://bristle.com/Tips/Unix.htm#sudo_via_ssh --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http

Re: Upgrading Django (to 1.7)

2014-10-17 Thread Fred Stluka
Sounds good! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need

Re: Upgrading Django (to 1.7)

2014-10-09 Thread Fred Stluka
. Thanks again! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Upgrading Django (to 1.7)

2014-10-09 Thread Fred Stluka
ole lot more, right? Otherwise, can you suggest where I can find an article similar to yours that gets me from 1.4 to 1.5 and on to 1.6 before I use yours to get me from 1.6 to 1.7? Thanks! --Fred ---- Fred Stluka -- mailto:f...

Re: Upgrading Django (to 1.7)

2014-10-05 Thread Fred Stluka
ces from Django 1.7 migrations - How to get started with Django 1.7 migrations - Unicode vs ASCII issues - Use of objects.bulk_create() Thanks! --Fred -------- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: templates: if and static tags incompatible?

2014-09-29 Thread Fred Stluka
The problem is that static is not being recognized as a valid Django tag. Add this line to the top of the template file to define it. {% load staticfiles %} --Fred Fred Stluka -- mailto:f...@bristle.com -- http

Fwd: Re: Upgrading Django (to 1.7)

2014-09-27 Thread Fred Stluka
rm.ModelName instead of appname.models.ModelName, it should solve exactly the problem you are describing. Hope this helps, --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- G

Re: Upgrading Django (to 1.7)

2014-09-26 Thread Fred Stluka
grations/#dependencies --Fred -------- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fence

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Fred Stluka
son - Add to forwards() method: call_command("loaddata", "/table_name/") --Fred -------- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -

Re: Upgrading Django (to 1.7)

2014-09-25 Thread Fred Stluka
Andrew, Good stuff! Thanks! We're still on 1.4, but planning a move soon to 1.7. Very helpful. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Fred Stluka
Excellent! Thanks! Now I can just point my team at it, instead of writing out the details myself. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com

Re: Lightening talk ideas for a (relative) beginner?

2014-09-24 Thread Fred Stluka
e, 404) - Selenium test cases with "LiveServerTestCase": https://docs.djangoproject.com/en/1.4/topics/testing/#live-test-server - Python Nose - Django Nose - Coverage Hope this helps! --Fred -------

Re: Can not include jquery in django template

2014-09-23 Thread Fred Stluka
Change it to: </tt><tt> --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fen

Re: Open Django template in dialog box (not in window)

2014-09-23 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Open Django template in dialog box (not in window)

2014-09-22 Thread Fred Stluka
g/ --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Window

Re: What't the best way to track created by and modified by in Django 1.7?

2014-09-17 Thread Fred Stluka
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: Django 1.5.1 - Mysql - Setting

2014-09-11 Thread Fred Stluka
', }, --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates

Re: How quickly do Django unit tests run?...

2014-09-02 Thread Fred Stluka
rent users - Use db_routers.py to write primary DB, read replica DB Thanks again! --Fred ---- Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! O

Re: How quickly do Django unit tests run?...

2014-08-29 Thread Fred Stluka
Benjamin, I solved my problem. I switched to SQLite for testing and now run 500+ tests in 30 secs instead of 75 minutes. Much better! Thanks for your help! --Fred Fred Stluka -- mailto:f...@bristle.com -- http

  1   2   >