Would it not make sense to store times in UCT then in a user profile allow
the user to choose their local timezone for display?
On Wednesday, August 16, 2023 at 3:15:39 AM UTC-7 Ruby wrote:
> You seem to be reinventing the wheel, Django already has timezone support
> when you set USE_TZ
>
Just for the follow-up, I ended up using pgloader and after some argument
tweaking, it worked. Cheers.
On Wednesday, September 2, 2020 at 7:26:04 AM UTC+2 Fred Blaise wrote:
> Hi Mike,
>
> Thanks for the answer.
>
> Yes, I was aware yet hopeful regarding the size.
>
> Regar
Hi Mike,
Thanks for the answer.
Yes, I was aware yet hopeful regarding the size.
Regarding the converter, I would be interested to take a look at your py3
work, if you could forward it along.
Thanks.
On Wed, Sep 2, 2020, 00:21 Fred Blaise wrote:
> Hi,
>
> I have to migrate a data
Hi,
I have to migrate a database from mysql to postgresql. Unfortunately, there
is quite a bit of data in there.
As a strategy, I thought of using Django's ORM feature, dump the data from
my setup using mysql, and load the fixtures on the other setup using
postgresql, such as:
# on mysql
$ do
Hi,
Do you need Chinese guys for this project?
Fred
发自我的iPhone
> 在 2020年5月18日,21:44,maninder singh Kumar 写道:
>
>
> Dear all,
>
> Require sales and marketing interns for django, javascript based artificial
> intelligence project.
>
> regards
> willy
> +9
The new model appears on the admin site but doesn't appear on the user's side.
I set the rules to (null=True, blank=False).
What could be the possible solution
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and
Hi,
Does anybody use django-oscar to build a commerce website? I have done most
of the things to make it online. But the default theme is ugly and not
matched with the commodity's style.
We are a startup company and no UXD for the website design right now. Is
there any other websites I can ref
.
At least, I learned this reason 20 years ago, and assume it is
still true. On the other hand, I've never checked to see whether
Django uses a connection pool by default, and it seems pretty
quick.
Does Django use a connection pool?
-
uturo. E vivem como se nunca
fossem morrer e morrem como se nunca tivessem vivido” - Dalai Lama.*
*"*
*Fred Chevitarese - GNU/Linux*
*http://chevitarese.wordpress.com* <http://chevitarese.wordpress.com>
2017-06-23 9:51 GMT-03:00 Daniel Jacob <
jacob.dan...@covenantuniversity.edu.ng&g
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
saúde. E por
pensarem ansiosamente no futuro, esquecem do presente de tal forma que
acabam por não viver nem o presente nem o futuro. E vivem como se nunca
fossem morrer e morrem como se nunca tivessem vivido” - Dalai Lama.*
*"*
*Fred Chevitarese - GNU/Linux*
*http://chevitarese.wordpress.
_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
in developing countries:
benefits and challenges. (Aisha Bello & Ibrahim Diop)
See my earlier email appended below for more details and what I like
about Django.
See you at DjangoCon?
--Fred
-----
Fred Stluka -- mailto:f...
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
Fabio,
Good point!
Browser-side security is VERY easy to bypass.
For example, just use Firebug or the built-in dev tools of Firefox,
Chrome, or Safari (or probably even IE by now), to edit the HTML
of the current page and then click the OK/Send/Submit button.
--Fred
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
ies.
Or can drop down into raw SQL if necessary.
And I can use middleware to inject all sorts of useful functionality
into the HTTP request/response cycle, to change or add to the
default behavior, add caching of DB data, Django
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
for
autocomplete is a heavy load. Might be better to wait
a second or so after each keystroke to see if the user
is still typing, using the same kind of algorithm Fred
has used in the past, a
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
I had the same issue and I found it was coming from django-rest. I
uncommented the app and it disappeared. Not sure the solution.
On Thursday, December 24, 2015 at 1:32:11 AM UTC-5, Shekar Tippur wrote:
>
> Hello,
>
> I have a application on my laptop and I am trying to move it to AWS.
> I have i
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
frocco,
I've done exactly that. No problem. How does it fail? What it
should be doing is redirecting any URLs like /mysite to the
wsgi.py file so Django will handle them. What error or bad
behavior do you see?
-
Well Steve, i will try to help you!
1 - Make sure to put Python at the system path. I mean, you can run python
at prompt?
2 - After that, make sure C:\PythonXX\Scripts is on system path as well.
3 - Now, you need to create your project. Try to run django-admin.py to see
if there's any information
d and don't have any
resources I can go to in my company.
Thanks,
Fred.
On Thursday, November 19, 2009 at 7:55:38 PM UTC-5, Graham Dumpleton wrote:
>
>
>
> On Nov 20, 4:33 am, Stodge wrote:
> > I got this working with several sites using Apache. I just created a
> > c
Recently I am learning about django source code from utils folder.
But about* functional* file, I don't know the meaning of lazy function.
Can anyboby help me to explain about the meaning about it?
Thanks
The code:
class Promise(object):
"""
This is just a base class for the proxy clas
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
I'm on a W7 32bit virtual machine with python 2.7 and SQL Server 2008 with
local views referencing Linked Server where the real data resides.
My setup is
Django (1.7.4)
django-pyodbc (0.2.6)
django-pyodbc-azure (1.2.3) not using this, it was a false
start that did not pan out.
mysql
+1 for easy-thumbnails. We use it and it works great. Allows
the user to upload images, optionally crop them during the
upload, manages the full-size and thumbnail files on the file
system with their names in the DB, etc. All automatic and all
easy.
--Fred
I've got a complex 1000+ table vendor read-only MS SqlServer database and
only have SELECT privileges. I can connect with pymssql no problem.
Of all these tables, I probably care about 50 or less.
I cannot create views unless I introduce another physical server and use
the "Linked Server" opti
I’ve got some policy/security
issues in my organization that require jumping through additional hoops and am
hoping there is some Django “magic” to solve this.
Thanks,
Fred.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubs
+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
e %}
and in the included file, use simply:
{{title}}
It seems odd that there'd be a restriction like this since I'm sure
you can pass objects to templates from views, but it's worth
trying. May be a good workaround, or may get you a different
error message that tips you
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
rver_name
port = my_db_server_port_number
tds version = 7.0
### Confirm the FreeTDS configuration
tsql -S my_dns_name -D my_db_name -U my_username
Password:
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8&qu
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 -
depend on
- Upgrading Python itself
- Release notes for each version
-- Backwards-incompatible changes
-- Deprecated features
-- New features
- Use new Check Framework to enforce coding standards
- etc.
See also:
- http://andrewsforge.com/article/upgrading-django-to-17/checklist
Than
cribing a simple way, then a problem,
then an enhancement that solves the problem, then another
problem, etc. Nice job! This will be very useful when I start
using the Check Framework to enforce coding standards for
my team when we move to Django
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
Mulianto,
You said:
Fred way is good, but need time to type and remember all the steps.
WIth fabric you will not miss a step and it can be automated.
I think you misunderstood my post. The commands I showed
are excerpts from my automated script. I provided them so
termopro could write such
esign). I've been doing
it for about 14 years. See, for example:
- http://bristle.com/RWD/BrightPanelsDemo/
Drag the window wider and narrower and watch the panels
completely re-configure themselves, nesting/un-nesting,
sta
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
---
You'd better have a look at the raw database SQL. I think syncdb won't change
the null attr of this column if it is not set in the first time. So the
possible solutions are 1) change the column in db manually 2) use a migration
tool like south. Hope this can help you.
--
You received this mess
I think you'd better have a look at the raw db sql. I remember that the syncdb
won't change the null attr. of a column if it's not set when initialized. So
two possible solutions: 1) set the db manually 2) use a tool like south to do a
migration. Hope I can help you.
--
You received this messa
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
1 - 100 of 375 matches
Mail list logo