python/virtualenvs/hhl/lib/python2.7/site-packages/sql_server
instead of setting PYTHONPATH:
% setenv PYTHONPATH
~/python/virtualenvs/hhl/lib/python2.7/site-packages/django/db/backends
FYI,
--Fred
--------
Fred Stluka -- mailt
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 8/27/14 4:21 PM
Benjamin,
OK, Thanks! So roughly how fast would you expect? Hundreds
of trivial tests per minute? Thousands per minute?
Thanks!
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software
How quickly do Django unit tests run?
Mine are taking 7-9 seconds each, even for trivial tests like:
self.assertEqual(1 + 1, 2)
that are all in the same test class of the same app.
Is this typical? Or do I have something misconfigured.
Thanks!
--Fred
--
You received this message
I'm getting error:
django.core.exceptions.ImproperlyConfigured:
Error loading either pysqlite2 or sqlite3 modules
(tried in that order): cannot import name dbapi2
Any suggestions?
Details:
My settings.py contains:
DATABASE = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
I did the tutorial, then created this site for a local non-profit:
http://helphopelive.org
--Fred
Original message From: Jorge Andrés Vergara
Ebratt Date:8/21/2014 9:55 PM (GMT-05:00)
To: django-users@googlegroups.com Subject: Re: Your
further steps
I have a few ideas about how to deal with this, but it must be a common
problem. What do you folks do?
Thanks!
--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http:/
of the above before I
agree to do a mailing to any of my lists of hundreds of local
developers. This has kept my subscribers happy.
HTH,
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle
ever use a full sentence
when a simple phrase will do.
Anyhow, good luck with your Django/WSGI setup!
Any more problems, speak up.
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fr
ps!
--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
# Initialize your database
$ python manage.py syncdb
## Fire it up!
$ python manage.py runserver
[Homebrew]: http://brew.sh/
Good luck!
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http:
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
Larry,
+1 for Pycharm (JetBrains).
I use their DB tools to explore both MS SQL and MySQL DBs. If
you like, I can dig up my notes on exactly how I made the
connection from PyCharm to MS SQL Server.
--Fred
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
Clifford,
Yes, its because the legacy DB has Windows-1252 chars in it, but
mis-informs Django that it is all UTF-8 chars.
Not a problem with django-pyodbc, which seems to work perfectly.
--Fred
Fred Stluka -- mailto:f
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
in western Philly suburbs
- Full time (30+ hours/week) consultant
- 6+ months
Interested?
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad
tino,
Didn't need the WSGIPythonHome setting in Apache, eh?
Interesting...
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service
e.com/p/modwsgi/wiki/ConfigurationIssues
- https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi
--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to
passed the dictionary directly to render_to_response().
--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
B.
--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
Can also use render_to_string().
--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
;.
--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
}
return render_to_response('bookmark_list.html',
variables, RequestContext(request))
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc
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
Fadi,
You need to {% load %} the file that defines the tags.
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source
Good idea! I donated $100. Excellent product. 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
ve you instructions for those platforms.
--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, w
Tom,
Excellent article! 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
Nice! 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
Yeah, I do the same with STATIC and COLLECTED_STATIC.
--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
/Unix.htm#tripwire
and 9 other security tips:
http://bristle.com/Tips/Unix.htm#unix_security
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad
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
ltiple answers.
Also, to allow editing of existing questions and answers. I have
code for that scenario too, if you can't figure it out, but this
should get you started.
Anyone else have improvements on this?
--Fred
--------
Fred Stl
smtp.googlemail.com as you do with your Apple Mail
client.
--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
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
install
--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
install
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 or Gates
setup.py build
% sudo python setup.py install
Success! Now I can access MySQL from my Python/Django apps.
BTW, I also downloaded and installed PyCharm. Nice Python IDE!
--Fred
Fred Stluka -- mailto:f...@bristle.com
es
there were a better way, but another reply says to just use MacPorts to
install it.
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!
Open Source: Without walls and fences, we
101 - 140 of 140 matches
Mail list logo