-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.
On 7/11/17 6:
eanup that 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
have the 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://bris
o use!
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
_user.
--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
)
COMMENT='Audit table. No need for constraints.'
ENGINE=InnoDB
;
GRANT SELECT, INSERT, UPDATE, DELETE ON itfa_product to itfweb;
-- DROP TRIGGER itft_ai_product;
DELIMITER ;;
CREATE TRIGGER itft_ai_product
BEFORE INSERT
ON itf_product
FOR EACH ROW
n
it would 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 -- Gl
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
STS = 'test' 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
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.co
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
Don’t enable them during 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
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.
D
out at us. 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:
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 to be
roject.com/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
e 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 --
he
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 W
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
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 Wi
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:
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
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
g.
Any suggestions? I feel 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 S
Oct 2006'
'%d %b, %Y', # '25 Oct, 2006'
'%B %d %Y', # 'October 25 2006'
'%B %d, %Y', # 'October 25, 2006'
'%d %B %Y', # '25 October 2006'
'%d %B, %Y
ot sure 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: Wit
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
27; +
unicode(email_message.to)
exception = e
except BaseException as e:
msg = u'An unexpected error occurred '
msg += u' when sending e-mail to ' +
unicode(email_message.to)
msg += u' during step: "'
te and could
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 -- htt
x27;s 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 Softwa
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
at slow on your 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.co
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
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
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 no
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 S
- Udacity
- 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
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
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
Feel free to reply with more questions.
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://bri
ls 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 Windo
efore 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 Stl
running, and to debug what was going wrong.
In a nutshell: "Holy Heisenberg Uncertainty Principal, Batman!"
--Fred
Fred Stluka -- mailto:f...@bristle.com --
http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to
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
luck because it seems to only affect 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 --
o.uk/projects/django-lint
- 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 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
ything you 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,
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
nt DDL of MySQL vs SQLite, or
the native tools of each 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
d = True,
max_length = 50,
label = u'',
widget = forms.TextInput(
attrs={
'class' : 'form-control',
'id' : 'inputSuccess5',
'placeholder' : 'Phone',
}
),
)
--Fr
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
templates,
and fully assembled Django pages, etc.
And I can hook into Django "signals" for more sophisticated
needs.
Very powerful!
And I've found the community to be extraordinarily friendly and
helpful also.
Enjoy!
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bri
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
------
*.pyc 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
Email to Fred w/subject "How to improve web page
performance from RevSys"
http://us5.campaign-archive1.com/?u=a8d4be66d1927077a9255182d&id=f0fc046554&e=c90970e145
http://www.revsys.com/12days/finding-sources-of-slowness/
https://highper
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
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://bristl
was trying to connect as the guest
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
-----
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 no
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
-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.
On 11/10/15 9:
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 S
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
+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
off to what the real problem is.
--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
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
if handled 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://b
gt;> conn = pyodbc.connect('DRIVER=SQL Server;'
'SERVER=my_db_server_name'
'PORT=my_db_server_port_number;'
'DATABASE=my_db_name;'
'UID=my_usern
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 -
ks!
--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
1.7 or 1.8.
--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
on IE? 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
://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
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 to
cking/un-stacking, 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.
--
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
---
of us 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 S
ls.py:*
class Meta:
managed = True 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!
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
e by using 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 Softwa
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 no
ever did before.
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 W
APPS, plus
a whole 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
- Differences 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.
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
and manipulate orm.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 -- htt
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
es//table_name/.default.json
- Add to forwards() method:
call_command("loaddata", "/table_name/")
--Fred
----
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, In
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://bristl
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
assertEqual(response.content, '0')
# An invalid vote - poll doesn't exist
response = c.post('/polls/2/vote/', {'choice': '1',},
**kwargs)
self.assertEqual(response.status_code, 404)
- Selenium te
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 fences
-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
e this helps!
--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
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
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
.0.0.1',
# Required for Windows; Harmless (same as default) for Linux
'PORT' : '3306',
},
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristl
s if over 100 concurrent 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
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 - 100 of 140 matches
Mail list logo