Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
is all important >> and its chopped off in the screenshot. >> >> Thanks >> >> On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote: >>> >>> Thanks >>> the second solution worked fine and the requirements were installed >>> >

[SOS] Django-Oscar Front end(theme) replacement

2017-12-29 Thread Fred Grey
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

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
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

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

2016-05-20 Thread Fred Stluka
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: 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

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

2016-06-15 Thread Fred Stluka
- 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

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 S

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 no

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: 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-04 Thread Fred Stluka
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

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: unindent does not match any outer indentation level

2016-07-05 Thread Fred Stluka
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

Re: Slow Django dev server reload

2016-07-05 Thread Fred Stluka
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

Re: Email List

2016-07-18 Thread Fred Stluka
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: "'

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: Testing if a view have an html element with at least one attribute

2016-08-03 Thread Fred Stluka
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

Re: Forcing Localization

2016-08-16 Thread Fred Stluka
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

Database data caching in Django?...

2016-08-17 Thread Fred Stluka
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

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

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: Unable to get tests to work

2016-08-17 Thread Fred Stluka
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-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 Wi

Re: Help with django form an ajax, error 500

2016-08-21 Thread Fred Stluka
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: Admin - saveasnew to another database

2017-01-02 Thread Fred Stluka
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

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

2017-01-02 Thread Fred Stluka
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 --

Re: multiple databases - two questions

2017-01-02 Thread Fred Stluka
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

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 to be

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

2017-01-16 Thread Fred Stluka
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:

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. D

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
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

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: 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.co

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
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

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: audit trail functionality in database model

2017-01-21 Thread Fred Stluka
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

Re: audit trail functionality in database model

2017-01-22 Thread Fred Stluka
 )   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

Re: audit trail functionality in database model

2017-01-22 Thread Fred Stluka
_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

Re: Model forms

2017-01-24 Thread Fred Chevitarese
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.

Re: best practices for handling charts

2017-05-23 Thread Fred Stluka
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

Re: Class based view without rendering form

2017-05-29 Thread Fred Stluka
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

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

2017-05-31 Thread Fred Stluka
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

Re: can somebody help me understand django framework please

2017-06-23 Thread Fred Chevitarese
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

Re: Use one correspondig database user for each application user

2017-07-21 Thread Fred Stluka
. 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? -

Re: Marketing django project

2020-05-18 Thread Fred XU
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

DB migration: Loading a massive fixture dump

2020-09-01 Thread Fred Blaise
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

Re: DB migration: Loading a massive fixture dump

2020-09-01 Thread Fred Blaise
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

Re: DB migration: Loading a massive fixture dump

2020-09-03 Thread Fred Blaise
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

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

2015-11-10 Thread Fred Stluka
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? -

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: django 1.9 - application does not

2015-12-30 Thread Fred Stakem
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

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 no

Re: Access denied for MySQL user in Django

2016-01-14 Thread Fred Stluka
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 -----

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://bristl

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: Scaling Django

2016-02-03 Thread Fred Stluka
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

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

2016-02-10 Thread Fred Stluka
*.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

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 ------

Re: Forms in Django

2016-03-18 Thread Fred Stluka
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

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-19 Thread Fred Stluka
d = True, max_length = 50, label = u'', widget = forms.TextInput( attrs={ 'class' : 'form-control', 'id' : 'inputSuccess5', 'placeholder' : 'Phone', } ), ) --Fr

Re: Forms in Django

2016-03-20 Thread Fred Stluka
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

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: Migrating older 1.4 project to 1.9

2016-03-30 Thread Fred Stluka
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,

Re: Django Forms vs Angularjs

2016-04-02 Thread Fred Stluka
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

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

2016-04-08 Thread Fred Stluka
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

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

2016-04-14 Thread Fred Stluka
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 --

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

Re: PyCharm not stopping at breakpoint

2016-04-18 Thread Fred Stluka
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

Re: No Downtime Code Releases

2016-04-19 Thread Fred Stluka
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

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

2016-04-20 Thread Fred Stluka
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

Re: Timezone issue in when storing in DB

2023-08-17 Thread Fred Legace
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 >

My newly added model doesn't appear on the user's side of the site

2020-02-23 Thread fred rick
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

Standard 404 page

2007-01-13 Thread Fred C. Dobbs
Newbie question. I've synched to revision 4313, setup a project, added a line to the urlpatterns to allow normal operation, and set Debug to False. Then I fire up the builtin server and request a non-existent page. I expect a "standard 404 page", but what I get is: Traceback (most recent call l

Re: Standard 404 page

2007-01-13 Thread Fred C. Dobbs
Thanks. When DEBUG = True, the page reads: "You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page." Shouldn't it say something about having to define a 404 template first? When I read the message a

<    1   2   3   4