Re: BEST DATABASE REPLICATION AND SYNCHRONIZATION TOOL

2020-07-23 Thread m1chael
I believe that would be barman. On Thu, Jul 23, 2020 at 7:26 AM Sunday Iyanu Ajayi wrote: > Hi guys, > > > Please I need recommendation on the best mssql to postgres database > replication and synchronziation tool ( especially linux OS enabled) > > > Thank you. > > *AJAYI Sunday * > (+234) 806

Re: How does WSGI work?

2019-02-26 Thread m1chael
Great write up! On Tue, Feb 26, 2019 at 2:39 PM Tal wrote: > Did I get something wrong? > Do you mean the devs working on the Django project know nothing about > this, or the devs using Django to build web apps? > From what I've read, devs using Django don't need to be too familiar with > WSGI,

Re: PDF extarcting

2018-11-13 Thread m1chael
i recently achieved this by using pdf2text tool, and then using regular expressions to parse out what I want. VERY DIFFICULT On Tue, Nov 13, 2018 at 6:45 AM swathi2801 Yadhav < swathi2801yad...@gmail.com> wrote: > by using resular we can only extract doc files but to for extracting the >

Re: How to publish Django 2 Application using WHM/Cpanel?

2018-09-11 Thread m1chael
use postgresql/nginx/gunicorn/supervisord for django and leave WHM/Wordpress/Cpanel/Apache/MySQL alone On Tue, Sep 11, 2018 at 3:07 AM Sunil Kothiyal wrote: > I think you not understand what i asked. I want to install only one > project for one user. not multiple. > > On Tue, Sep 11, 2018 at

Re: django wamp

2018-07-07 Thread m1chael
best not to fight Apache and just use nginx for django On Sat, Jul 7, 2018, 11:07 PM wrote: > > Hi, > I'm a novice with django but have been setting up django on a Win7 Wamp > stack. We have several small non-django websites running on wamp. > Those projects are in c:/wamp/www/myproject for

Re: How to handle Video/Audio streaming using Django Channels?

2018-06-25 Thread m1chael
icecast2? On Mon, Jun 25, 2018 at 1:48 PM wrote: > Hi Andrew - With Channels 2, can we have real-time audio/video streaming? > Thanks/Tirthankar. > > On Saturday, November 5, 2016 at 4:16:21 AM UTC+5:30, Andrew Godwin wrote: >> >> Hi Sandro, >> >> Real-time video streaming is pretty intensive,

Re: Django

2018-05-26 Thread m1chael
Check out icecast and a Javascript library that can support an icecast stream. There are tons of them. I can't remember the one I was using a few years ago but it worked great. On Sat, May 26, 2018, 8:24 PM Mike Dewhirst wrote: > Try googling "django audio streaming". > >

Re: Multiple settings files with sites framework

2018-04-18 Thread m1chael
I have an apps dir, and several project dirs (one per domain/subdomain) the settings files for are kinda like this: from mainproject.settings import * then i'll just re-define what i'm overwriting.. like SITE_ID, or urls, etc.. it seems to work good for me On Wed, Apr 18, 2018 at 8:39 PM,

Re: How to make asynchronous ajax requests if the server side work takes plenty of time to finish?

2018-03-30 Thread m1chael
I think a typical approach would be, using Django celery to process your heavy workload in the background, and then when finished, notify the user via email, text, or maybe have a periodic async ajax call check to see if there are completed tasks not yet looked at On Fri, Mar 30, 2018 at 12:53

Re: How to populate DB from PDF extracted data

2018-03-09 Thread m1chael
Good luck. Best case scenario in my opinion is using the utility pdf2text and regex, and this will be painful. On Fri, Mar 9, 2018, 3:01 AM Shazia Nusrat wrote: > Hi, > > I am trying to work around with PDF's where user uploads PDF in image or > filefield and then way

Re: Django 2.0.1 admin

2018-01-05 Thread m1chael
did you ever override your admin templates? On Fri, Jan 5, 2018 at 5:20 PM, Matthew Pava wrote: > Hi everyone, > > I am finally able to move to Django 2.0, but I just noticed an error I > keep getting when attempting to open the admin: > > > > TemplateSyntaxError at

Re: Migration Issues when updating model's default primary key from id to uuid

2017-11-11 Thread m1chael
i would never try to fight my database and django like that. I would add a separate uuid field On Fri, Nov 10, 2017 at 10:54 PM, Liuyang Wan wrote: > Let's say in my Django project I have two models A and B. > > class A(models.Model): > something... > > class

Re: How to clean a form which receives multiple files

2017-09-22 Thread m1chael
I do it this way too and agree that it feels dirty. Curious to hear what others have to say about this! On Fri, Sep 22, 2017 at 9:18 AM, guettli wrote: > I am not happy with this snippet from the django docs: > > > from django.views.generic.edit import FormViewfrom .forms

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread m1chael
James, you rock dude. lol On Thu, Jul 20, 2017 at 2:20 PM, James Schneider wrote: > > > On Thu, Jul 20, 2017 at 8:44 AM, wrote: > >> Hey, I've been running into issues trying to figure out how a user could >> be able to access multiple

Re: After upgrading 1.1 to 1.6 users with old passwords can log on new users can not log on.

2017-04-30 Thread m1chael
Hi, This explains your issue in detail: https://docs.djangoproject.com/en/1.11/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting ..and talks about a very easy workaround Mike On Sun, Apr 30, 2017 at 4:25 PM, NoviceSortOf wrote: >

Re: combining ORM and raw SQL in same query

2017-02-20 Thread m1chael
i did something like this recently using .extra / select https://docs.djangoproject.com/en/1.10/ref/models/querysets/#extra On Mon, Feb 20, 2017 at 10:49 AM, Larry Martell wrote: > Is there any way to use both the ORM and raw SQL in the same query? > > I have an

Re: Convert PostgreSQL tables to django

2016-10-29 Thread m1chael
https://docs.djangoproject.com/en/1.10/howto/legacy-databases/ On Sat, Oct 29, 2016 at 1:02 PM, Rich Shepard wrote: > Is there a tool to convert postgres DDL to django model syntax? It would > sure save a lot of time and effort if there is a converter. > > Rich > --

Re: multiple django installation in one server

2016-09-08 Thread m1chael
virtual environments and virtual hosts through your web server On Wed, Sep 7, 2016 at 9:28 AM, miarisoa sandy wrote: > Hi guys, > > I hope you are doing fine. > I have googled it but no fruitful results. > I am a newbie in django and I wonder what is the number maximum

Re: Storing images in a database using Django.

2016-05-06 Thread m1chael
Storing images in a database will be loads of headache later. Like someone else said: store only the paths! Use FileField/imagefield On May 6, 2016 7:26 PM, "Adam Stein" wrote: > You can take a look at django-db-file-storage > >

Re: Sorry about this post

2016-04-29 Thread m1chael
. On Fri, Apr 29, 2016 at 1:22 PM, Gary Roach wrote: > I'm sorry that I am tying up everything with this message but am having > problems with one of my mailing list accounts and need to trouble shoot. > None of my posts are showing up. > > If anyone sees this just

Re: Mobile eCommerce with Django

2016-03-24 Thread m1chael
You might be able to tailor Saleor to fit your needs. https://github.com/mirumee/saleor On Wed, Mar 23, 2016 at 8:03 PM, Jordan Koncz wrote: > I'm working on a Django back-end that provides an API (using Django REST > Framework) for a mobile app. I'm looking to add

Re: Gmail Django

2016-02-19 Thread m1chael
You may have to dig deep in Google's settings and turn off a lot of security, don't give up, this is an annoying one. On Fri, Feb 19, 2016 at 3:17 PM, wrote: > my settings > > EMAIL_USE_TLS = True > DEFAULT_FROM_EMAIL = 'webmaster@vaility' > EMAIL_BACKEND =

Re: Running a Django site on a standalone Windows laptop

2016-02-16 Thread m1chael
I would vote for a Virtualbox instance depending on your performance requirements On Tue, Feb 16, 2016 at 9:36 AM, Remco Gerlich wrote: > Hi, > > We have a web application that usually runs on Ubuntu servers on the > Internet. In the background it calls software that runs on

Re: Team project via Git repo

2015-11-09 Thread m1chael
What ended up solving your issue, Ralph? ~Mike On Mon, Nov 9, 2015 at 4:34 PM, Ralph Castain wrote: > My apologies for the long, long delay in finally responding. Your advice > worked like a charm!! > > Thanks a lot to all who responded. > Ralph > > >> On Oct 13, 2015, at

Re: Django code of conduct - last line

2015-05-07 Thread m1chael
I think if you change the word 'resolving' to 'resolve', it may make more sense.. On Thu, May 7, 2015 at 10:51 PM, Graham Oliver wrote: > Hello all > Just reading the code of conduct https://www.djangoproject.com/conduct/ > The last line goes like this > > 'Don’t

Re: Random row

2014-12-20 Thread m1chael
you keep overwriting your random_choice every time the loop is run, getting the last result is expected On Sat, Dec 20, 2014 at 4:37 PM, Dariusz Mysior wrote: > Why I get only last row from my csv file, why I don't get in any time ranom > row :/ > > import csv, random >

Re: How to find the word 'python' in string 'pythonpythonpythonpyth'?

2014-11-05 Thread m1chael
does this help? http://www.nltk.org/ On Wed, Nov 5, 2014 at 7:28 PM, Russell Keith-Magee wrote: > > Actually - I'd suggest that the Python mailing list isn't the right place > either. > > It sounds like the problem you're describing is called the Longest Repeated >

Re: Upgrade to Django 1.7 - AppRegistryNotReady exception

2014-10-12 Thread m1chael
after: os.environ.setdefault( add: import django django.setup() try that, let us know! ~mike On Sun, Oct 12, 2014 at 9:48 AM, Luca Trifilio wrote: > I'm struggling by trying to make things work after upgrading the Django > version from 1.6.7 to 1.7. It looks

Re: Turn off migrations completely in Django 1.7

2014-09-18 Thread m1chael
Hi, I feel your pain, but I think you can utilize something with --fake I have been using databases for many, many years, and honestly- migrations definitely make sense. I am able to add new fields within a few seconds without having to do any extra work. It takes 2 minutes to learn how to use

Re: mixing python , php and django

2014-08-14 Thread m1chael
I recently met a business man in my community that was looking to hire me to put together some school intranets.. long story short, I told him no because he would not allow me to develop in Django/Python. I don't need that in my life. :) Mike On Thu, Aug 14, 2014 at 12:28 PM, Nikolas

Re: Gallery App in Django project

2014-05-08 Thread m1chael
photologue may work for you.. i use it, and have customized it very extensively for my needs On Thu, May 8, 2014 at 3:05 AM, bradford li wrote: > I'm pretty new to Django and I thought, what better way to learn than to > create your own website?! > > I posted a question on

Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread m1chael
This may or may not work for you, but did you see https://github.com/tabo/django-treebeard/ ? On Fri, May 2, 2014 at 6:17 PM, Scott Harper wrote: > Okay, so here's what I ended up going with: > > Rather than nested inline form sets, I made a formset for all of the >

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread m1chael
You really shouldn't be learning with the dev version as Babatunde Akinyanmi pointed out, but, i'm curious enough to respond have you tried to install Django toolbar to figure out what template is actually being loaded? Maybe that will give you a good idea on where to troubleshoot Mike On

Re: How to create an admin editable list?

2014-04-18 Thread m1chael
list_editable in the admin class On Fri, Apr 18, 2014 at 2:41 AM, wrote: > Any suggestion on how to create an admin editable list? either using django > or python? Thank you for your time. Regards, > Rads > > -- > You received this message because you are subscribed to the

Re: Django querysets and postgresql views

2014-03-18 Thread m1chael
esatterwhite, that's a great tip! What about raw queries as another option? On Tue, Mar 18, 2014 at 9:10 AM, esatterwh...@wi.rr.com wrote: > Yes you can. Just create the view however you like. Make a django model with > the fields that map to the table the view returns

Re: Do I need an API?

2014-02-04 Thread m1chael
I think the point is: it's difficult for old-school tech people to work with Django because there is a learning curve, and it's hard to mimic exactly what they are used to, and it's difficult to persuade them this is the right way to do things. -- You received this message because you are

Re: Do I need an API?

2014-02-03 Thread m1chael
I deal with the same thing... and i've set up the template directories for them to access, and it works OK.. but I still hear complaints from the old timers that won't want to conform to this new way of doing things, This isn't a stupid question at all. I'm hoping someone can give a truly

Re: Problems Sending Email From Django SIte

2014-02-02 Thread m1chael
py >>> from base_beagle import * >>> >>> # SECURITY WARNING: keep the secret key used in production secret! >>> SECRET_KEY = 'xx' >>> >>> # SECURITY WARNING: don't run with debug turned on

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
any luck? On Sat, Feb 1, 2014 at 12:58 PM, m1chael <myk...@gmail.com> wrote: > maybe try > > EMAIL_HOST = "0.0.0.0" > > On Sat, Feb 1, 2014 at 12:57 PM, m1chael <myk...@gmail.com> wrote: >> have you tried adding 'localhost' to 'local_domains'? >>

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
maybe try EMAIL_HOST = "0.0.0.0" On Sat, Feb 1, 2014 at 12:57 PM, m1chael <myk...@gmail.com> wrote: > have you tried adding 'localhost' to 'local_domains'? > > On Sat, Feb 1, 2014 at 12:54 PM, m1chael <myk...@gmail.com> wrote: >> also, what is "a"

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
have you tried adding 'localhost' to 'local_domains'? On Sat, Feb 1, 2014 at 12:54 PM, m1chael <myk...@gmail.com> wrote: > also, what is "a" ?? are you trying to email a...@something.com ?? or just > 'a' ?? > > > On Sat, Feb 1, 2014 at 12:52 PM, m1chael <myk.

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
also, what is "a" ?? are you trying to email a...@something.com ?? or just 'a' ?? On Sat, Feb 1, 2014 at 12:52 PM, m1chael <myk...@gmail.com> wrote: > check Exim options relating to unqualified addresses > > On Sat, Feb 1, 2014 at 11:08 AM, Mark Phillips > <m.

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
check Exim options relating to unqualified addresses On Sat, Feb 1, 2014 at 11:08 AM, Mark Phillips <m...@phillipsmarketing.biz> wrote: > No joy.same reject error and no emall sent. > > I am stumped on how to diagnose this problem. > > Mark > > > On Sat, Feb 1,

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
yeah On Sat, Feb 1, 2014 at 10:51 AM, Mark Phillips <m...@phillipsmarketing.biz> wrote: > Thanks.what email address...the one in admins? > > Mark > > > On Sat, Feb 1, 2014 at 7:55 AM, m1chael <myk...@gmail.com> wrote: >> >> I'm ju

Re: Problems Sending Email From Django SIte

2014-02-01 Thread m1chael
EMAIL_SUBJECT_PREFIX = "[Django-beagle] " > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'inventory_prod', > 'USER': '****', > 'PASSWORD': '***', > } > } > > INTE

Re: Problems Sending Email From Django SIte

2014-01-31 Thread m1chael
cannot send email. > > This fact leads me to believe my django app is mis-configured for sending > email. In all other aspects, my app works as designed. > > Do you have any other helpful suggestions? > > Mark > > > On Fri, Jan 31, 2014 at 7:26 PM, m1chael <

Re: Problems Sending Email From Django SIte

2014-01-31 Thread m1chael
Your mail server needs configuring. On Fri, Jan 31, 2014 at 8:15 PM, Mark Phillips wrote: > A follow up. After hitting send, I realized how to simulate an error - I > asked for a page with a nonexistent id. Like the polls example in the django > tutorial, I used an

Re: How to hide the "save and add another" button in admin page?

2014-01-20 Thread m1chael
How about extending a template and issuing a CSS visibility ? On Mon, Jan 20, 2014 at 3:01 AM, parnigot wrote: > If your method ModelAdmin.has_add_permission() returns always False even a > superuser can’t add the initial entry using the admin. But you can: > > Add the

Re: Stroring images in the database

2013-11-12 Thread m1chael
People have always recommended to me that storing images directly in a database is a bad idea. On Tue, Nov 12, 2013 at 8:47 AM, Leslie Jeffries wrote: > Have you looked at this django add-on? > https://pypi.python.org/pypi/django-db-file-storage > > > On Tuesday,

Re: Invalid control character char 30262

2013-11-11 Thread m1chael
I use ignore in unicode(...) to solve annoying things like this On Nov 11, 2013 10:48 AM, "Timothy W. Cook" wrote: > The replace was my thought as well. I would just replace it with an > empty string. Especially since it is a control character and apprently > doesn't carry human

Re: Restrict access to user-uploaded files to authorized users

2013-09-25 Thread m1chael
I think Xsendfile is what you want On Wed, Sep 25, 2013 at 12:51 PM, Mattias Linnap wrote: > > Are there any obvious solutions that I have over looked? Or am I stuck > having to use django to serve the files? > > Depending on the security that you aim to achieve, one

Re: Restrict access to user-uploaded files to authorized users

2013-09-24 Thread m1chael
mod_xsendfile for apache has worked for me, don't know if it will work for you On Tue, Sep 24, 2013 at 5:08 PM, Simon Charette wrote: > I'm not aware of any solution except serving from Django if you can't > install Apache plugins. > > If you're really stuck with serving

Re: An easy way to integrate Jcrop in Django's admin?

2013-06-26 Thread m1chael
I did this by creating a custom admin view that utilizes JCrop On Wed, Jun 26, 2013 at 7:56 AM, thoms wrote: > Sure, but I want a user friendly interface to crop the image. And Jcrop > seems to be the best option. > So my question is: how to modify my model and the

Re: A really simple hosting for my Django app?

2013-06-15 Thread m1chael
amazon aws micro instance is free for 1 year i believe On Sat, Jun 15, 2013 at 3:58 PM, Enyert Viñas wrote: > On 06/15/2013 03:18 PM, Jonathan D. Baker wrote: > > Check out webfaction. They have a ton of documentation, great support and > it's only $10/mo. > > Sent from

Re: how to delete in the admin - strategy needed

2013-02-04 Thread m1chael
I'll admit that i'm a bit old-school and most people are going to cringe at seeing this, I would set a DB trigger with the raw logic On Mon, Feb 4, 2013 at 2:14 AM, Mike Dewhirst wrote: > This is the error ... Select a valid choice. That choice is not one of the >

Re: Django hosting companies

2013-01-30 Thread m1chael
aws micro instance On Tue, Jan 29, 2013 at 10:54 AM, Mengu wrote: > some of my friends are using webfaction. i use linode and in the past > i have used webbynode. > > On Jan 29, 3:17 pm, francislutalo wrote: >> Anyone with an idea of which are the

Re: CRM like / email thread functionality for Users

2013-01-15 Thread m1chael
I've done something similar with using Postfix and having postfix deliver to a local python script On Tue, Jan 15, 2013 at 10:11 AM, Alexander Todorov wrote: > Hi folks, > I'm looking for an application/module to achieve the following > functionality: > > 1) Be able to

Re: managing files, deleting file from file system with admin site

2012-11-15 Thread m1chael
I think you need to do this with a signal, or on post_save On Thu, Nov 15, 2012 at 12:48 AM, Sergey Seleznev wrote: > Hi! I'm new to python and django(well, and web dev too). > I'm using python 2.7 and django 1.4 > I went through the tutorial and then got issue with files

Re: How to sync data between two DBs

2012-10-17 Thread m1chael
http://dev.mysql.com/doc/refman/5.0/en/replication.html does this work? On Wed, Oct 17, 2012 at 8:00 AM, Alexander Todorov wrote: > On Tuesday, October 16, 2012 6:54:52 PM UTC+3, Nikolas Stevenson-Molnar > wrote: >> >> Do you already have data on the new database which

Re: Regarding the sub domains

2012-10-13 Thread m1chael
step #1 would be to configure your name servers to resolve anything.example.com to an ip On Sat, Oct 13, 2012 at 7:25 AM, anup kalburgi wrote: > Hi, > > We have multiple users and each user needs to have a subdomain along with > a separate database for each one of them, >

Re: non-root SCRIPT_NAME, mod_wsgi and RewriteRule

2012-10-01 Thread m1chael
is it a problem with the trailing slash? On Sun, Sep 30, 2012 at 7:57 AM, Sebastiaan Snoeckx < sebastiaan.snoe...@gmail.com> wrote: > I have my Django website and my static files deployed under the same > directory (i.e. no separate 'static' directory), according to the following > Apache

Re: Browser get closed when clicked on others links

2012-09-18 Thread m1chael
are you using internet explorer? On Tue, Sep 18, 2012 at 7:50 AM, Pervez Mulla wrote: > Hi, > > I have developed simple website with Django framework. > > When i want to switch to other page, the browser getting closed..:( > > What the problem for this ? > > Thank You >

Re: Forms, ChoiceFields and import?

2012-09-11 Thread m1chael
Timtables should also be Timetables On Tue, Sep 11, 2012 at 9:30 PM, m1chael <myk...@gmail.com> wrote: > it looks like you have a syntax error here: > > timetable = > forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date') > > shou

Re: Forms, ChoiceFields and import?

2012-09-11 Thread m1chael
it looks like you have a syntax error here: timetable = forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date') should be: timetable = forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date')) # added a ) On Tue, Sep 11, 2012 at 9:26 PM, Lachlan

Re: Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread m1chael
what about raw_id_fields ? On Wed, Sep 5, 2012 at 9:00 AM, Mattias Linnap wrote: > I've found two solutions: setting "editable=False" in the model's > field definition (which removes the field completely from admin), or > adding it to readonly_fields list in the ModelAdmin

Re: Editable Tables

2012-09-04 Thread m1chael
clever!! On Mon, Sep 3, 2012 at 8:20 AM, zayatzz wrote: > For this kind of thing django has forms and formsets. I would think that > this can be achieved quite easyly by using formsets. What you can do - you > can write your own widgets for this kind of table. Like

Re: Django app to update site through email

2012-08-11 Thread m1chael
Hello, I did this recently with postfix. These are my notes: [add to /etc/aliases] support:"|/home/support/support.py" [add to /etc/postfix/virtual] t...@thesupport.com support * then run newaliases And my script looks like this: #!/usr/bin/python import sys, time, email,

Re: If using South, does it even matter what the underlying database is?

2012-07-06 Thread m1chael
Hi! I personally find PostgreSQL much easier to work with. (and the docs are beautiful) MySQL has ugly docs, weird syntax, and it does unexpected strange things. (and their terms of use is a little weird I think too.. yes MySQL has burned me years ago and i've never forgiven it.) -endofrant-

Re: Converting to Postgres database; error with UserProfile model

2012-07-05 Thread m1chael
syncdb is doing nothing for you? On Thu, Jul 5, 2012 at 1:06 PM, DF wrote: > I have a problem that I hope someone with insight can aid with. My first > Django project is near completion and I’m currently transitioning to a > Postgres database in anticipation of deploying

Re: ecommerce like openCart in php

2012-04-11 Thread m1chael
i think you're barking up the wrong tree miss Hisham On Wed, Apr 11, 2012 at 6:34 PM, Randa Hisham wrote: > > iam searching for an ecommerce  open source like OpenCart in php > -  - > Randa Hesham > Software Developer > > Twitter:@ro0oraa > FaceBook:Randa Hisham > > ٍ > >

Re: Users getting logged out frequently

2012-01-05 Thread m1chael
Could an incorrect computer clock contribute to this kind of issue? On Thu, Jan 5, 2012 at 10:35 AM, Dennis Lee Bieber wrote: > On Thu, 5 Jan 2012 08:56:57 +0530, Arun P wrote: > >>That’s a lot of education Dennis. Thanks. > >        Pardon, but just

Re: Disk I/O Error

2011-11-02 Thread m1chael
I would also check the disk space On Tue, Nov 1, 2011 at 7:23 AM, Jani Tiainen wrote: > On 1.11.2011 8:23, Nicole Button wrote: >> >> I'm getting a DatabaseError, looking like this: >> >> Django Version:         1.3 >> Exception Type:         DatabaseError >> Exception Value:  

Re: Static files ...

2010-11-13 Thread m1chael
Hi.. This is a common subject! Your best bet is to just configure apache or lighthttpd to serve your static files... ~mike On Sat, Nov 13, 2010 at 5:24 PM, Jon Snidal wrote: > Hello, > > First post to the group, and sorry it's on this common subject!  I > have tried to read

Re: Is there some way to log every SQL command sent to the DB?

2010-10-24 Thread m1chael
You could turn on logging through your DB On Sat, Oct 23, 2010 at 12:30 PM, Phlip wrote: > Google leads me to this: > >        from django.db import connection >        print connection.queries > > It can't see the queries the test runner used to set up the database. > > So,

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread m1chael
what about something like x-sendfile in apache? On Wed, Oct 6, 2010 at 7:27 AM, Steve Holden wrote: > On 10/6/2010 7:17 AM, Kenneth Gonsalves wrote: >> On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: >>> Is anyone aware of a Django app that lets you upload media files (not

Re: Full Text Search

2010-10-01 Thread m1chael
maybe i misunderstood your question, but maybe it will help On Fri, Oct 1, 2010 at 8:19 PM, m1chael <myk...@gmail.com> wrote: > Hello! > > I use PostgreSQL, and this is how I accomplished a full text search: > > def search(request): >  # how to set up postgresql for full

Re: Full Text Search

2010-10-01 Thread m1chael
Hello! I use PostgreSQL, and this is how I accomplished a full text search: def search(request): # how to set up postgresql for full text searching #alter table quote_quote add column body_tsv tsvector; #CREATE TRIGGER quote_quote_tsvectorupdate BEFORE INSERT OR UPDATE ON quote_quote FOR