On Sun, Feb 22, 2015 at 8:17 AM, Guy Tamir wrote:
> Hi all,
>
> I'm looking for recommended tools to monitor my Django server.
> I'm deploying to Heroku.
>
> Not sure what I should expect from the tool, the only thing I really need
> (the reason I started searching for a tool) is a way to set an A
I have a webservice written in django and I want to call it from a non
django app with ajax. Both apps run on the same host. When I call the
webservice with curl it works fine, but when I call it with ajax from
the other app I get a 500 internal server error. There are no errors
in the web server l
no stacktrace. ALLOWED_HOSTS is ['*'] so that's not the
cause.
>
>
> On 03/26/2015 02:04 AM, Larry Martell wrote:
>>
>> I have a webservice written in django and I want to call it from a non
>> django app with ajax. Both apps run on the same host. When I c
the
500 is resolved. I am now fighting the 400 error, which also gives no
stack trace.
>
>
> On 03/26/2015 12:25 PM, Larry Martell wrote:
>>
>> On Thu, Mar 26, 2015 at 7:22 AM, aRkadeFR wrote:
>>>
>>> Do you have the stacktrace? Without it it's gonna
I want to override submit_line.html for a single model or a single app
(either will work - the app has just one model). I see in the docs I
cannot do that
(https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model)
Is there some way to test for wh
On Sun, Apr 5, 2015 at 7:25 AM, YOUSSEF LOUMI wrote:
> Hi,
>
> How to receive json data sended in url using django
That depends. If it was sent in a POST in a parameter called
json_content, then you could do:
jsonIn = json.loads(request.POST['json_content'])
--
You received this message becaus
On Tue, Apr 7, 2015 at 11:44 AM, Eugene Yeo wrote:
> Django Docs seems down except its latest development.
>
> https://docs.djangoproject.com/en/1.8/ (Not working)
Works for me.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe fr
I have a model and I want to have this behaviour in admin:
1. Only the add button is shown.
2. When the user clicks the add button, it brings up the standard
page, but with just 1 custom button shown.
3. When the user clicks that custom button, I execute an ajax call and
display the results below
On Tue, Apr 7, 2015 at 5:40 PM, Larry Martell wrote:
> I have a model and I want to have this behaviour in admin:
>
> 1. Only the add button is shown.
> 2. When the user clicks the add button, it brings up the standard
> page, but with just 1 custom button shown.
> 3. When th
On Fri, Apr 10, 2015 at 3:14 PM, Larry Martell wrote:
> I am trying to add custom password validation to the create user and
> change password admin forms. I did not see anything in the django docs
> about how to do this. From what I read on stackoverflow and other
> sites it see
On Thu, Apr 9, 2015 at 5:04 AM, wrote:
> I have been using jQuery BlockUI Plugin for locking the browser after
> clicking a search form. But here the problem is dynamic data,images is
> really hard to implement. Therefore, Is there any chance to do in django via
> functions ?
>
> For instance: Wh
On Tue, Apr 7, 2015 at 7:04 PM, Larry Martell wrote:
> On Tue, Apr 7, 2015 at 5:40 PM, Larry Martell wrote:
>> I have a model and I want to have this behaviour in admin:
>>
>> 1. Only the add button is shown.
>> 2. When the user clicks the add button, it brings up the
lates the DRY principle and I just can't believe there
is not an easier way to do this. But thanks for replying.
Em sex, 10 de abr de 2015 às 19:39, Larry Martell > escreveu:
>
>> On Fri, Apr 10, 2015 at 3:14 PM, Larry Martell > > wrote:
>> > I am trying to add cu
On Sat, Apr 11, 2015 at 9:27 AM, Mike Dewhirst wrote:
> On 10/04/2015 11:06 PM, Larry Martell wrote:
>>
>> Reading this:
>> https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#extending-the-existing-user-model
>>
>> I see this:
>>
>> Th
On Tue, Apr 14, 2015 at 4:18 AM, Frank Bieniek
wrote:
> Hi Larry,
>
> You could configure the routes in the urls.py, take the create user route
> and plug in your CustomPasswordForm...
> ...
> customization example of the userena urls for the normal frontend
>
> ... url(r'^(?P[\.\w]+)/password/$',
On Sun, Apr 19, 2015 at 7:21 AM, Bernd Wechner
wrote:
> I'm just playing around with Django and have cut a simple model and all is
> working fine. The Django administration tool works a charm, and I can move
> onto some views and forms. But what puzzles me immensely is why editing a
> tuple looks
On Mon, Apr 20, 2015 at 10:31 AM, David Pineda wrote:
> Hello
> I'm a begginner in django and i need to work with a form (send a file) and
> when the file it's ok run a bash scripts to process that.
>
> I investigate and the common recomendation si use 'subprocess' an 'sys'
> So, i can set the pa
This is not really a django question, but I think these are issues
folks here have faced, so I hope someone can help me.
Prior to now, all the django projects I've worked on have used apache
and WSGI. With those, when an error occurred I went to
/var/log/httpd/error_log and details of the error we
dir shows this:
nginx.conf: access_log /var/log/nginx/access.log;
nginx.conf: error_log /var/log/nginx/error.log;
And as I said before, the error log is always empty:
$ ls -l /var/log/nginx/error.log
-rw-r- 1 www-data adm 0 Apr 19 06:48 /var/log/nginx/error.log
>
> On Thu, Apr 23, 2015
On Tue, Apr 21, 2015 at 2:20 PM, Jay wrote:
> Just curious if any long time python / django developers have seen an
> increase in the demand/growth/popularity of these skills? I run a dev team
> of python/django/aws developers building an ecommerce website and was
> curious about what people think
I have a situation where I need to run an external python script in a
test after the tables are loaded from fixtures. This doesn't work
because django runs the tests in a transaction and the external python
script is running in its own MySQL connection from the test so it's in
its own transaction.
On Tue, May 12, 2015 at 8:19 PM, Mike Dewhirst wrote:
> On 13/05/2015 5:07 AM, Larry Martell wrote:
>>
>> I have a situation where I need to run an external python script in a
>> test after the tables are loaded from fixtures. This doesn't work
>> because django
On Sat, May 16, 2015 at 9:26 AM, mangu rajpurohit
wrote:
> Hi,
>
> I am new to Django. I am working on an application ,where the types of table
> fields in database are not known before hand. So, say for eg. In student
> table, I am assigning CharField to marks field, ie
>
> class Student(models.M
On Fri, May 22, 2015 at 3:09 PM, Vernon D. Cole wrote:
> Django migrations are run in a single transaction (if your database is
> capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of
> large tables become impossible.
>
> I was able to solve this problem by having the migrati
On Thu, May 28, 2015 at 9:31 AM, Shekar Tippur wrote:
> Hello,
>
> I am trying to post a request via curl. I get a CSRF verification failed
> message.
>
> Here is the entry in my urls.py
>
> url(r'^setProfile/', AddToUserProfile),
>
>
> class AddToUserProfile(generics.ListAPIView):
> queryset
On Tue, Jun 2, 2015 at 11:48 AM, Cherie Pun wrote:
> Hi,
>
> I am new to Django and I am trying to reduce the number of calls to database
> as it's slowing down the app. I am performing iteration over the queryset
> and I used django_debug_toolbar to check the number of queries made, and the
> num
On Mon, Jun 8, 2015 at 10:36 AM, akshat wrote:
> I am making an app which uses User authentication to give access to various
> pages on the website. I want to use session management for this. But first I
> need to check if the cookie support is provided by the client's browser.
> Some conditions w
We have an app that is installed at many different sites, and these
sites do not all have the same database schema. This means that we
need to have different models at different sites. (The code itself is
not an issue as it's all introspective.) I'm looking for info on how
folks here have dealt wit
On Tue, Jul 7, 2015 at 7:12 AM, Dean Christian Armada
wrote:
> Hi Everyone,
>
> Is there an available option in the UI of Django Admin to manually select
> how many records to be shown per page?
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_per_page
On Thu, Jul 16, 2015 at 7:44 PM, Jake Rudolph wrote:
> If I have a separate Python script that I want to interact with my Django
> project, how do I set them up to communicate?
Not 100% sure what you mean. Do you mean you want to have a standalone
python script that uses the ORM? I do this all th
On Fri, Jul 17, 2015 at 12:55 PM, Jake Rudolph wrote:
>> On Friday, July 17, 2015 at 5:12:51 AM UTC-7, larry@gmail.com wrote:
>>
>> On Thu, Jul 16, 2015 at 7:44 PM, Jake Rudolph wrote:
>> > If I have a separate Python script that I want to interact with my
>> > Django
>> > project, how do I s
On Tue, Jul 8, 2014 at 12:07 AM, Janelle O'Dea wrote:
> Anybody in Southwest Florida who uses Django?
I am in Venice.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an ema
I am trying to upgrade a site to 1.6. I read the change notes about
the tests now having to start with test.
My project's structure is this:
myproj/app/appname/tests
and in that dir was a file called EventLog.py, and in that file a
function called EventLogTest
My __init__ had:
from myproj.app.
On Thu, Jul 10, 2014 at 8:35 PM, Russell Keith-Magee
wrote:
>
> On Fri, Jul 11, 2014 at 3:34 AM, Larry Martell
> wrote:
>>
>> I am trying to upgrade a site to 1.6. I read the change notes about
>> the tests now having to start with test.
>>
>> My projec
On Fri, Jul 11, 2014 at 10:44 AM, Russell Keith-Magee
wrote:
> Hi Larry
>
> On Fri, Jul 11, 2014 at 9:37 PM, Larry Martell
> wrote:
>>
>> On Thu, Jul 10, 2014 at 8:35 PM, Russell Keith-Magee
>> wrote:
>>
>> I appreciate the detailed reply, and I t
On Fri, Jul 11, 2014 at 11:16 AM, Larry Martell wrote:
> On Fri, Jul 11, 2014 at 10:44 AM, Russell Keith-Magee
> wrote:
>> Hi Larry
>>
>> On Fri, Jul 11, 2014 at 9:37 PM, Larry Martell
>> wrote:
>>>
>>> On Thu, Jul 10, 2014 at 8:35 PM, Russell
On Fri, Aug 22, 2014 at 9:55 AM, Norman Bird wrote:
> I am new, just completed the tutorials, but from my understanding you run
> "python manage.py syncdb" and that rebuilds the tables etc.
No, syncdb only create tables that do not exist. It does not alter any
existing tables.
>
> On Friday, Aug
On Wed, Aug 27, 2014 at 12:31 PM, n lubkov wrote:
> Hello, I need to figure if this is possible using django.
>
> I have a main database (admin) and a database (clients) for each client.
>
> The main database is just a list of clients and the name of the database of
> each client.
>
> The client’s
On Fri, Oct 24, 2014 at 12:30 PM, Collin Anderson wrote:
> Hi All,
>
> I've been trying to figure out the proper way to index my data or construct
> my query so I can query orders in a reasonable amount of time. Is there a
> better way to index/query my data?
>
> orders = Order.objects.exclude(sta
On Fri, Oct 24, 2014 at 1:17 PM, Ram Ganesh wrote:
> Hi all,
>
> I want to append my datas from old_db to new_db
> they have exactly the same structure,
>
> I'm trying to Write a Script using Django Manually selecting a database
> -Read data from old_db and Write it into new_db
> -But not sure
On Mon, Oct 27, 2014 at 2:06 PM, Dan wrote:
> I've been trying to access https://www.djangoproject.com since Friday, but
> no matter what browser I use on server different systems the connection
> fails.
>
> There appears to be something wrong the the SSL configuration at the main
> Django Project
So it seems MySQLdb doesn't support python3, and I see this on the django site:
mysqlclient is a fork of MySQLdb which notably supports Python 3 and
can be used as a drop-in replacement for MySQLdb. At the time of this
writing, this is the recommended choice for using MySQL with Django.
mysqlclie
On Mon, Nov 3, 2014 at 10:59 AM, Andreas Kuhne
wrote:
>
> 2014-11-03 16:54 GMT+01:00 Larry Martell :
>>
>> So it seems MySQLdb doesn't support python3, and I see this on the django
>> site:
>>
>> mysqlclient is a fork of MySQLdb which notably supports
On Mon, Nov 3, 2014 at 11:13 AM, wrote:
>
> Yes, mysql-python-connector works fine with python3.4.2.
>
> I'm using it and no problems until now.
Thanks for the reply. Do you know where I can download it from?
>
>
> Em segunda-feira, 3 de novembro de 2014 13h55min25s UTC-2,
> larry@gmail.com
On Mon, Nov 3, 2014 at 12:10 PM, Larry Martell wrote:
> On Mon, Nov 3, 2014 at 11:13 AM, wrote:
>>
>> Yes, mysql-python-connector works fine with python3.4.2.
>>
>> I'm using it and no problems until now.
>
> Thanks for the reply. Do you know where I ca
On Mon, Nov 3, 2014 at 12:42 PM, Leandro Zanuz wrote:
>
> You can download it on mysql official website:
>
> http://dev.mysql.com/downloads/connector/python/
Y
>
>
> 2014-11-03 15:10 GMT-02:00 Larry Martell :
>>
>> On Mon, Nov 3, 2014 at 11:13 AM, wrote:
>
On Mon, Nov 3, 2014 at 12:42 PM, Leandro Zanuz wrote:
>
> You can download it on mysql official website:
>
> http://dev.mysql.com/downloads/connector/python/
Yes, I know that. I am looking for mysqlclient
>
>
> 2014-11-03 15:10 GMT-02:00 Larry Martell :
>>
>>
What about mysqlclient? The django site says that is "the recommended
choice for using MySQL with Django" but I can't seem to find that
package. Does anyone have a link for that?
On Mon, Nov 3, 2014 at 8:57 PM, wrote:
>
> Hi all,
>
> I notice that python-mysql-connector(1) is almost 30% slow tha
Yes, thanks for the link. For some reason google wasn't finding that for me.
On Tue, Nov 4, 2014 at 6:59 AM, wrote:
>
> Are you talking about this?
>
> https://github.com/PyMySQL/mysqlclient-python
>
> I didn't tried that. Someone use it?
>
>
> Em terça-feira, 4 de novembro de 2014 09h08min38s U
2:56:27 PM UTC-5, larry@gmail.com wrote:
>>
>> On Mon, Nov 3, 2014 at 12:42 PM, Leandro Zanuz wrote:
>> >
>> > You can download it on mysql official website:
>> >
>> > http://dev.mysql.com/downloads/connector/python/
>>
>> Yes, I know th
I have a web page POST-ing a JSON object like this:
var content = '{ "EnergylinxTariffMenu" : [' +
'{ "FuelPage":"dual" , "DualMenu":"electric",' +
' "SupplierName":"npower", "MeterType": "",' +
' "TestLive":"test"} ]}';
On Mon, Nov 10, 2014 at 9:43 AM, wrote:
> Hi,
> I'm writing a Django application that uses an existing database. If I
> understood it well, in such a case one must create non-managed models for
> the legacy tables to avoid Django creating already existing tables, right?
No, when you run syncdb i
On Mon, Nov 10, 2014 at 9:53 AM, wrote:
> So what is written in the docs is wrong?
Please provide some context. Quote the relevant portions of the post
you're replying to.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from t
On Mon, Nov 10, 2014 at 10:00 AM, wrote:
> Here comes the context. Sorry.
>
> On Monday, November 10, 2014 3:49:40 PM UTC+1, larry@gmail.com wrote:
>>
>>
>> No, when you run syncdb it will not create or modify any existing
>> tables, only create new ones.
>
>
> Again, are the docs wrong?
Th
On Mon, Nov 10, 2014 at 10:50 AM, Tom Evans wrote:
> On Mon, Nov 10, 2014 at 1:44 PM, Larry Martell
> wrote:
>> I have a web page POST-ing a JSON object like this:
>>
>> var content = '{ "EnergylinxTariffMenu" : [' +
>>
I have a suite of selenium live server tests that have been running
fine (django 1.6, python 2.7, centos 6.5). The host they were running
on died and I moved them to a new host. They are failing there with:
ERROR: setUpClass
--
Tr
On Fri, Nov 14, 2014 at 1:41 PM, Larry Martell wrote:
> I have a suite of selenium live server tests that have been running
> fine (django 1.6, python 2.7, centos 6.5). The host they were running
> on died and I moved them to a new host. They are failing there with:
>
> ER
On Fri, Nov 14, 2014 at 9:36 PM, Michael Manfre wrote:
> A heads up to anyone using Django-mssql. The project has shifted from Hg to
> Git (still on Bitbucket). For most people, this will have no impact. If any
> of you had a dependency to a specific changeset, you will need to update the
> refere
On Sat, Nov 15, 2014 at 10:29 AM, Carl Meyer wrote:
> Hi Larry,
>
> On 11/14/2014 08:44 PM, Larry Martell wrote:
>> On Fri, Nov 14, 2014 at 1:41 PM, Larry Martell
>> wrote:
>>> I have a suite of selenium live server tests that have been running
>>> fine (d
I am setting up a new django project and I'm getting the dreaded
'Could not import settings' error. I've set up many django projects
before, and never had this problem. The differences with this one is
that it's using python3.4, django 1.7, and it's on a VM (all my others
were on <1.7, python 2 and
On Thu, Dec 4, 2014 at 4:54 PM, inoyon artlover KLANGRAUSCH
wrote:
> Hi there, I got a following Form-Class:
>
>
> class CustomUserprofileInterestsForm(forms.ModelForm):
>
> interests = forms.ModelMultipleChoiceField(
> queryset=Interests.objects.all(),
> widget=forms.CheckboxS
On Thu, Dec 4, 2014 at 6:46 PM, inoyon artlover KLANGRAUSCH
wrote:
> Great, it works with one form but not with an another...
> Btw. how is it possible to overwrite the 'this field is required' error
> message?
You can provide your custom set of default errors to the form field
definition, e.g.:
I have a django view that normally receives POSTed data from a web
page. That all works fine. But now we also want to call that view from
a python script. That is failing with a 403 because of a CSRF
mismatch. I can disable CSRF on my view and then it does work from the
script.
Is there some way I
rride the CSRF protection very easily?
> On Dec 5, 2014 8:16 PM, "Larry Martell" wrote:
>>
>> I have a django view that normally receives POSTed data from a web
>> page. That all works fine. But now we also want to call that view from
>> a python script. That
On Mon, Dec 8, 2014 at 11:44 AM, Carl Meyer wrote:
> Hi Larry,
>
> On 12/08/2014 07:14 AM, Larry Martell wrote:
>> On Sat, Dec 6, 2014 at 1:41 AM, James Schneider
>> wrote:
>>> Check out Collin's email from earlier, it has an example using curl but you
&
Is there any difference, either functional or performance wise,
between these 2 constructs:
Q(f=1) and filter(f=1)
Or, between these 2:
(~Q(f=1)) and exclude(f=1)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
On Thu, Nov 21, 2013 at 1:20 PM, CLIFFORD ILKAY
wrote:
> Hello,
>
> There is an upcoming project where support for an existing application
> where Microsoft SQL Server is being used. Switching to another database
> is not an option. There are hundreds of custom reports that the users
> have create
On Fri, Nov 22, 2013 at 10:44 AM, Fatih Tiryakioglu wrote:
> Hi all,
>
> How can I get distribution of values in a field? For example, I have the
> scores below:
>
> (score)
> (raw1)1
> (raw2)1
> (raw3)3
> (raw4)4
> (raw5)4
> (raw6)5
> (
On Thu, Dec 5, 2013 at 3:29 AM, Harjot Mann wrote:
> In django form I want to add a * symbol on those fields which are
> compulsory so that user can recognize from the name of the field that
> this field is required field.
You could use the HTML placeholder attribute.
--
You received this messa
I have 2 tables that I need to initialize with some initial sql files.
One table has a foreign key reference into the other. The docs say
"Note that if you have multiple SQL data files, there’s no guarantee
of the order in which they’re executed." So what can I do here? I
obviously need the table w
On Fri, Dec 13, 2013 at 8:08 PM, Tom Lockhart wrote:
>
> On 2013-12-13, at 1:48 PM, Larry Martell wrote:
>
> I have 2 tables that I need to initialize with some initial sql files.
> One table has a foreign key reference into the other. The docs say
> "Note that if you
is
> not guaranteed then even if things work for you now using "initial sql" may
> just be postponing a problem to the future.
>
This is something we need to work from syncdb. And I am using MySQL.
> On 2013-12-14, at 6:02 AM, Larry Martell wrote:
>
> On Fri, Dec 13,
My model is named foo, but my tables start with bar_ (I set the table
names in the Meta class in my models). I have an initial sql file in
app/foo/sql/blah.sql to initialize bar_blah, but it is not getting
executed. Is this because of the difference in the model name and
table prefix?
--
You rece
On Mon, Dec 16, 2013 at 6:37 AM, Michael Herrmann
wrote:
> Hi everyone,
>
> I'm working for a startup called BugFree Software. We're launching a new
> Python product for web automation today and, since you are all doing web
> development with Python, I wanted to let you know about it.
>
> Helium i
On Tue, Dec 17, 2013 at 2:26 AM, Michael Herrmann
wrote:
> On Monday, December 16, 2013 1:54:01 PM UTC+1, rush wrote:
>>
>>
>> According to http://heliumhq.com/files/helium_license.txt it is not.
>>
>> Furthermore it is not free. According to their price page you have to pay
>> at least 200 euro p
On Sun, Jan 5, 2014 at 7:49 AM, fabricio wrote:
> I am needing to display a wait message while processing perform some process
> on the server anyone could help me
You could create the wait message in a class like this:
... loading
Then at the beginning of your template do:
$('.loadMsg').sho
On Wed, Jan 8, 2014 at 9:33 AM, luca72 wrote:
> hello the views file is like:
>
> def test(request):
>testo = ["a","b"]
>titolo = 'test'
>variabile = 'one'
>return render_to_response('vini.html',{'testo':testo,'titolo':titolo,
> 'testo':testo,'variabile':variabile,})
>
> the templa
I am trying to connect to a MS SQL server from django on Linux using
Vernon Cole's django-mssql package
(https://bitbucket.org/vernondcole/django-mssql-ado-merge/src).
When I first tried to connect it failed with:
Exception Type: DatabaseError at /report/CDSEM/EventsTable/
Exception Value: Cannot
On Tuesday, January 14, 2014, Mark Moss wrote:
> The default port for MySQL is 3306. Have you tried that one?
>
I'm not trying to connect to MySQL - I'm trying to connect to Microsoft SQL
server.
--
You received this message because you are subscribed to the Google Groups
"Django users" group
ux?
> On Wed, Jan 15, 2014 at 6:46 AM, Larry Martell
> wrote:
>>
>> On Tuesday, January 14, 2014, Mark Moss wrote:
>>>
>>> The default port for MySQL is 3306. Have you tried that one?
>>
>>
>>
>> I'm not trying to connect to MySQL -
lblog/archive/2009/07/17/how-to-configure-sql-server-to-listen-on-different-ports-on-different-ip-addresses.aspx
>>
>> http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx
>>
>> Check also FreeTDS project: http://www.freetds.o
I have an admin form for a model and based on the value of one column
(either as it is in the database or as it's entered or changed by the
user), I want to conditionally display or not display other fields. Is
there a way to do this natively in the admin or do I have to write
some javascript code.
I have a form where I need to display 2 fields in one select box, with
one field left justified and one field right justified.
Here is the model:
class Group(models.Model):
ordering = ['order',]
GROUP_BY_CHOICES = (
("Target", "Target"),
("Recipe", "Recipe"),
("PP
___
> 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 1/14/
I am trying to 'fake out' a model form and display data from 2 columns
in one field. I can do this by returning the 2 columns in the model's
__unicode__ method, but I want to apply styling to the data - I want
one column's data left justified and the other column's data right
justified. When I retu
: 'FreeTDS',
> },
> },
> }
>
> ## Verify that Python can get to the SQL Server database
>
> At this point, you should be able to open a connection to the HHL test
> SQL Server database as follows:
>
> $ python
> Python 2.7.5+ (default, Se
I am trying to override the admin sidebar block. As a starting point I
just copied the entire block from the django index template into my
own index.html file. But I am getting:
Error during template rendering
In template /usr/local/motor/motor/ui/templates/admin/index.html,
error at line 6
This
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option.
> On Sun, Jan 19, 2014 at 6:50 PM, Larry Martell
> wrote:
>>
>> I am trying to 'fake out' a model form and display data from 2 columns
>> in one field. I can do this by returning the 2 columns in
I have a model that I need to add some custom javascript processing to
its admin form, which is this:
class CategoryAdmin(admin.ModelAdmin):
radio_fields = {"data_path_ip": admin.HORIZONTAL}
list_display = ('name', 'event_path', 'data_path', 'file_spec',
'data_path_ip')
list_filter = (
On Tue, Jan 21, 2014 at 9:08 AM, Larry Martell wrote:
> I have a model that I need to add some custom javascript processing to
> its admin form, which is this:
>
> class CategoryAdmin(admin.ModelAdmin):
> radio_fields = {"data_path_ip": admin.HORIZONTAL}
&g
Thanks!!
On Tue, Jan 21, 2014 at 1:43 PM, Jonathan Pentecost
wrote:
> Your not loading the "trans" tag,
> https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#internationalization-in-template-code
>
>
> On Tuesday, 21 January 2014 12:32:56 UTC+11, larry@gmail.com wrote:
>>
>> I am t
On Wed, Jan 22, 2014 at 10:18 AM, Ankit Singh wrote:
> i got this error when trying to use pyhtobn manage.py syncdb what does it
> mean?
> File
> "/home/user/it/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
> line 17, in
> raise ImproperlyConfigured("Error loading MySQL
I have a table that has these 2 foreign keys:
target_name = models.ForeignKey(Target)
wafer = models.ForeignKey(Wafer)
Both Target and Wafer are defined the same:
name = models.CharField(max_length=40, db_index=True, unique=True)
When filtering by wafer I can do this:
wafer__name__icon
On Wed, Jan 29, 2014 at 5:28 PM, Will A wrote:
> Try
> target_name_name__icontains='foo' or update the foreign key definition.
target_name__name__icontains is what was needed.
Thanks.
>
>
>
> On Wed, Jan 29, 2014 at 5:08 PM, Larry Martell
> wrote:
>>
>&
On Saturday, February 1, 2014, Ara Sivaneswaran
wrote:
> Hi,
>
> Is there anyway to force login to access to some url's?
>
> Here is my url:
> url(r'^notify/', get_notify_pattern()),
> url(r'^admin/wiki/view', get_wiki_pattern()),
>
> I tried putting: login_required(get_wiki_pattern()) but it say
On Fri, Feb 7, 2014 at 10:53 AM, felix kimutai wrote:
> I get the following error
>
> " Traceback (most recent call last):
> File "manage.py", line 2, in
> from django.core.management import execute_manager
> ImportError: cannot import name execute_manager "
>
> when I run this command :
On Mon, Feb 10, 2014 at 8:24 AM, Onur wrote:
> Is there any suggestion for open source django tables, I know django_tables2
> and eztables?
>
> Which one would you like to prefer? or Do you know anyone else?
http://tablesorter.com/docs/
--
You received this message because you are subscribed to
On Wed, Feb 12, 2014 at 1:56 PM, Marc Aymerich wrote:
> I'm running my Django app tests and I'm getting a random and very
> annoying assertion error
>
> ==
> FAIL: test_rest_dns_delete
> (orchestra.apps.dns.zones.tests.functional_
On Sat, Mar 15, 2014 at 9:38 AM, willy Hakizimana wrote:
> First of all, this community is amazing at how fast questions are answered.
> I have learned so much.
>
>
> I am designing an app with models that look like this.
>
> Country(country_id(PK), country_name, gdp, gdp_growth, income_per_capita
: '_your_odbc_dsn_name_',
> # Ignored for Windows; Required for Linux
> 'OPTIONS' : {
> # ODBC driver name in /etc/odbcinst.ini
> 'driver': 'FreeTDS',
> },
> },
&g
301 - 400 of 596 matches
Mail list logo