KG wrote:
> What needs to be done to make use of any other DB engine thru ODBC?
>
An ODBC database backend would need to be written for the Django ORM.
signature.asc
Description: OpenPGP digital signature
u have described calls for an SSO module. Basically you modify
Django and/or the other web app to use the same database table for
sessions Django makes this fairly easy, and many PHP applications don't.
There is probably a lot of resources "out there" by googling "Django SSO"
Ta
you tried the ldap backend contained in Ticket #2507? We've used
this in production as long as the code has been around (the original
author was my co-worker) We've had very few problems with it.
http://code.djangoproject.com/ticket/2507
Jeff Anderson
signature.asc
Description: OpenPGP
odules/externals. Generally speaking, a single site could/should be
a single Django project, and making this distinction doesn't come up
terribly often in the configurations I've seen.
Hopefully this was helpful and happy coding!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
e, and why?
Thanks for the input!
Jeff Anderson
gitosis: |git://eagain.net/gitosis.git|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
Hernan Olivera wrote:
details in http://www.alwaysdata.com/offers/shared/
Very cool! I don't speak French, but I know enough about words to get
the idea.
signature.asc
Description: OpenPGP digital signature
your home machine.
If you find otherwise, I'd be interested to know.
Thanks!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ripts
with their fingers in the same table.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
t's the documentation build system that Python and Django both use.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
your domain's mailserver.
The third option is to use an imap or pop library and download the
messages that way. Python has the 'imaplib' module for imap, and
'poplib' for pop3. I haven't implemented this either. I'd be willing to
guess that this is easiest if you have a shared host, or don't run your
t I haven't gotten my example for this one running quite yet.
Hopefully this is enough to give you an idea as to how to design things.
I don't really have any code that is sharable, but the concept is fairly
straightforward (I hope.) I'm happy to clarify anything if needed.
Happy Coding!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
tofer...@gmail.com wrote:
> On 07.01-08:51, Jeff Anderson wrote:
>
>>> I agree with this. I use null=False, blank=True for some ImageFields
>>> and integers.
>>>
>> I'm interested in how a blank integer looks in a MySQL database. Can you
>>
Karen Tracey wrote:
> On Wed, Jan 7, 2009 at 10:51 AM, Jeff Anderson
> <jeffe...@programmerq.net>wrote:
>
>
>> varikin wrote:
>>
>>> I agree with this. I use null=False, blank=True for some ImageFields
>>> and integers.
>>>
Eric Simorre wrote:
> it does not work , and I don't find what to do
>
Well, there's your problem. You should just make it work. :)
signature.asc
Description: OpenPGP digital signature
varikin wrote:
> I agree with this. I use null=False, blank=True for some ImageFields
> and integers.
I'm interested in how a blank integer looks in a MySQL database. Can you
provide an example?
signature.asc
Description: OpenPGP digital signature
phoebebright wrote:
> Thanks for your response. Do you think a working knowledge of python
> is essential for django then? And do I import modules the same in
> django and python? Are there any python things you can't do in
> django?
>
Django *is* Python. In fact, Django is only a Python
Malcolm Tredinnick wrote:
> On Mon, 2009-01-05 at 23:39 -0700, Jeff Anderson wrote:
>
>> Malcolm Tredinnick wrote:
>>
>>> The way to think about this problem is whether there's a situation where
>>> blank=True, null=False makes sense or is even possi
ields (and quite possibly
other non-text fields) should behave the way that Mike is describing.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Artem Skvira wrote:
> Is it worth asking this question is dev group?
>
No. Your usage question does not belong on the dev group. It belongs
here, on the user group.
signature.asc
Description: OpenPGP digital signature
your available memory on your slice, and swapping. I had this same
problem. I posted about it to this group a couple weeks ago. Basically,
switch to mod_wsgi in daemon mode. It'll reduce your memory usage, and
increase the speed of the site. Search the archive for more details.
Jeff Anderso
ramming blog might be more inclined
to disable javascript. As a fallback, you could simply use an iframe to
point to your analytic view. That'll probably cover most everything.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
to put
that data into the final file format for the end user (html in most cases).
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
e never used this middleware, but its homepage seems to have an nginx
example:
http://superjared.com/projects/static-generator/#sample_nginx_configuration
I don't think that using fastcgi should affect anything if you're using
nginx.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
python json module. I know that Django makes use of
it for importing/exporting database fixtures. It is bundled with django
at: django.utils.simplejson. I'd start there, and poke around in the
Django code for more examples. I'm no expert here, this is just where
I'd start looking.
Happy coding!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
up on some
unix basics. There are many tutorials about the unix shell out there. I
can't recommend one because I would just google for an introduction to
the unix/linux/macos terminal.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
go-admin.py script exits on success with no output. That's what it's
supposed to do. Does the mysite directory not exist after you run that
command?
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
fe...@pax:~$ django-admin.py startproject mysite
jeffe...@pax:~$ cd mysite/
jeffe...@pax:~/mysite$
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Correct. You have to tell apache that the location of the admin media
should be handled with the default handler, and then make an alias for
that location to point to the correct location on disk. This is in the
docs: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1
Cheers,
maging having a persistant python
thread hanging around processing for a minute or two would make the
webserver hang in a mod_python or mod_wsgi environment, but I didn't try
it. Why would this be the case?
From the "I've done it without a hitch" department,
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
- Windows only, uses IE for rendering
http://cutycapt.sourceforge.net/ - cross platform, uses the same
rendering engine as konquerer/google chrome/safari.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
also read that mod_wsgi performs better than mod_python.
Please let me know if you have any other ideas! I'm also curious to know
if anyone thinks that one of the things I mention trying would help or
hurt. Thanks!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
heir MEDIA_URL url to
something like '/static'. Another logical way to set the URLs is to have
MEDIA_URL be '/media' and ADMIN_MEDIA_PREFIX set to '/media/admin'
Hopefully this is helpful and makes sense!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
avascript will send
a request to the server without reloading the page in the browser, and
can (optionally) change something in the loaded page based on data
received by the response, while the server can do whatever it wants–
including updating a database.
Hopefully this is helpful!
Jeff
with wireshark. It very well could
be an issue with a header or something– especially if you're doing
something crazy weird in the view.
Have you checked the log to see if Safari is actually hitting the webserver?
Hopefully this will give you some idea as to how to start diagnosing the
problem.
Jeff And
Peter Bengtsson wrote:
> What's faster, locmem or memcache?
>
> I know that the docs rave on about how fast memcache is but what about
> locmem? That sounds pretty fast to me since it doesn't need another
> TCP service and just uses the RAM.
> My particular site (for mobile phones without any
new_projects.append(item)
Of course, this won't work if you are getting a list as input, and not
the individual items.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ut as long as you can get the binary content of
the image into Python, you're fine. Simply set the mime type and content
of the response, and you're good to go. There are examples in the Django
documentation on how to do this with a PDF, but the response object
instance creation will be
ols mentioned use an ssh
connection to provide their various services. There's plenty of info
"out there" about using the terminal.
Take care!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
d the admin doc for info
about a using a custom manager. I didn't see it, but that doesn't mean
it isn't there.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
but it's all
documented.
You can also have multiple admin sites installed on different URL paths.
Make one admin site for one app, and another admin site for the other.
I've never done that either though, but it too is documented. :)
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
byte compiling stage, at least for the gis stuff. As
long as you don't plan on using gis, ignoring those errors won't hurt you.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
shi shaozhong wrote:
> Dear Jeff Anderson,
>
> Thank you for your email.
>
> It sounds very interesting to me. I must confess that I am not a
> programmer, and have no experience with Django. But I have a project
> in hand to do such a work.
>
> Have you ever tried
t familiar with AJAX, I suggest reading a tutorial about how
AJAX works, and then consider using an AJAX library.
Hopefully this gives you a good starting point.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ning PHP
to get an html template into Django, though I think it's kind of cool
that someone has done it. :p
Take care!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ns
should. It's there to make your life much easier, and it does that very
well. You'll still need to build views for your app, but if you need to
go in and change something manually, the admin interface is way better
than dropping to SQL.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
come up, this is the place to ask.
It sounds like you're already headed in the right direction. Use
Django's auth system, the admin site, and build your own app for reptile
tracking. I'd use it, except I'm not a reptile owner– we only have a bird.
Happy Coding!
Jeff Anderson
signature.asc
D
James Bennett wrote:
> On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
>> We have an alias set up in postfix that sends the e-mail to our script
>> via a pipe.
>>
>> The python script imports our Django models, and parses the e-m
constantly check and download hundreds of messages all the
time, but my guess is that it might be less load than loading several
hundred instances of a python interpretor. It'd be interesting to test.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
-mail to our script
via a pipe.
The python script imports our Django models, and parses the e-mail
message with the email module, and does what it needs to.
This should give you a decent starting point.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
clude the code for the view that is being called, and
possibly your urls.py
Do you have a urls.py in your project?
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
log/how-to-use-python-to-get-your-external-ip
>
There might be a Python networking library out there, or you could parse
the output of "ifconfig" on linux, or "ipconfig" on windows.
You could look at the SERVER_NAME environmental variable, which is
usually the server's fqd
is happened before the 1.0 release.
You just need to change your code to reflect this, and it should likely
work.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
view when running the
Django development environment, and turning that off in a production
environment.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Pythoni wrote:
> In PHP can be used
> include "http://url_address;;
> ?>
>
>
> How must I translate that to be able to use it in Django?
>
Use a Python library to fetch the content, and set a context variable
passed to a template to hold the included content.
J
apauth.py in
> authenticate, line 113
>
> The full error is at: <http://dpaste.com/84838/>
>
> How can we set LDAP_OPTIONS to turn on TLS?
>
Hello,
LDAP_OPTIONS should be defined in your settings.py. Paste what you have
in your settings.py for the ldap configuration, and I can help diagnose.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
rrently supported, how hard would it be to include?
> Would it use the readline library?
>
This is already implemented with a bash completion script. I'm not 100%
sure where in svn it lives, but its there, and it works.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Harish wrote:
> Hi Friends,
>
> I configured a django site using apache, which is running on Fedora 9.
> Now I want to enable the
> HTTPS (secured ) service on that site
>
> Any ideas on how to achieve this?
>
Configure apache to do SSL-- no special setup needed for Django.
signature.asc
zjffdu wrote:
> I am a newbie of django, and want to know which IDE is suit for
> django?
>
I'd say that it'd be good to continue using whatever IDE you use for
your other Python development. Django is, after all, simply Python code
that you call from your code.
Jeff Anderson
sign
python
module (smug.genericurls for example)?
We'd really rather use the generic views, but they seem a bit picky for
some of the crazy stuff we're doing. If there's a way to turn that
behavior off, great. If not, we can split it out.
Thanks!
Jeff Anderson
signature.asc
Description: OpenPGP
y of examples
and the like out there. Its pretty straightforward to do-- you just need
to set your DJANGO_SETTINGS_MODULE to point to your settings, and write
models/use inspectdb.
The same type of thing is achieved when someone wants a cronjob to do
something with their Django models. There ar
It
was more like a traditionaly CGI script.
You just need to import the appropriate Django libs in your Python
script, and you are good to go.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
You'll get an response
object back, and you can take the content of the response object, and do
whatever you want with it.
I ran into something similar and worked out how to implement it. I
haven't actually done it yet, so I can't share any gotchas that might
come up.
Cheers!
Jeff Anderson
signatur
There is also a middleware that
exists so Django can handle the redirects. There are a few different
incarnations of it here: http://www.djangosnippets.org/tags/ssl/
Hopefully this is what you need!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
No, you just need to make sure that the html code spit out by Django
points to the proper location.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Kenneth Gonsalves wrote:
> hi,
> when I open a jpg file directly in firefox, I get a magnifying glass cursor,
> which on clicking gives me a bigger more detailed image. The same file when
> served through the get_photo_url in a django template does not give this -
> how can I achieve this?
>
t. Look in the Django documentation for "legacy db" stuff to
get Django working with your existing tables.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
etc/init.d/httpd stop is just a wrapper script that uses the kill
command. You need to do the same thing to kill any process. ctrl+c sends
signal 2 to the running process. kill is exactly what you need to use.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
owing that it was doing something.
If a cronjob is really what fits the bill, consider switching your
hosting provider or plan to something that includes cronjobs-- its worth
it to not be hackish. :)
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
jeffhg58 wrote:
> I just recently upgraded to Django 1.0, but when I log in with users
> that I have created I get up a popup window
> stating syntax error and after I login the clock and calendar objects
> are lost.
>
You'll need to be much more specific. Where are you logging in. What do
you
Frédéric Sidler wrote:
> What it the best Django stack today.
>
> In django doc, it says that apache with mod_python is the best
> solution in production. But in the same time I see that everyblock use
> nginx (probably in mode fastcgi).
>
> Did you some of you test different solution and can
mation is in nearly every python book available, and
freely available on the internet. Try googling for "python path" and I'm
sure this information would have come up in your search. This isn't even
Django specific-- this is a python question.
Cheers!
Jeff Anderson
signature.asc
Description:
Matt Conrad wrote:
> Thanks for the reply. I don't quite understand yet. Let's see how close I am.
>
> I have a Python application directory (on my machine,
> C:\apps\Python25\). Inside that directory I have
> \Lib\site-packages\django, which is currently v0.96.
>
> Right now, the PYTHONPATH
Matt wrote:
> Does anyone have ideas on running 0.96 and 1.0 side by side safely?
>
All I've done in the past is set my PYTHONPATH based on which
checkout/release of Django I want used in a particular instance. It
works quite well, even in production.
Jeff Anderson
signature.asc
Descr
. At least
for initial developing of Django projects, I'd recommend you stick with
the dev server-- it is there to help you be more productive and keep
things from getting in your way.
Hopefully this helps!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
need, they
discard it. Simple as pie.
Hopefully this is helpful!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
casos que requieren
otron opciones, pero nunca he visto un projecto que lo usa.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
más de Mysql? No sé si soporte unicode sqlite.
¿Sierve eso sin los opciones DATABASE_OPTIONS, o teine la misma problema?
Disculpa mí español. No lo uso en la computadora mucho.
¡Graciás!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
bugs than 0.96. It is also very near to 1.0 status. It would be silly to
start with 0.96 and then have to rework all your code for 1.0 in the
near future.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
t up to do the logic all at once. Because modulo
returns an integer, you can just set the number of blank fields to the
number that modulo returns.
Hopefully that helps!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
would see a huge slowdown if you were using python to run cgi, and
python had to load itself into memory, compile the code, and run it for
each and every request. Fortunately with mod_python, this isn't the case.
Hopefully this makes a little more sense now.
Cheers!
Jeff Anderson
are asking about urls in Django, I suggest you read through the
tutorial in the official Django documentation.
Good luck!
Jeff Anderson
PS - instead of replying to an existing thread and changing the subject,
it is better to start your own thread. Your message is in the middle of
another thread
with lots of data.
You have a few options:
* issue the alter table command yourself
* drop the table altogether and run syncdb again
* check out the django-evolution project on google code. I haven't used
it, but it is designed to handle just this.
Good Luck!
Jeff Anderson
signature.asc
D
and run with it.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
dumping it for arch
linux. rhel5 seems to introduce more bugs than it addresses. We've had
smooth sailing with arch linux so far.
Anything that you are comfortable with that runs python and apache
should probably work fine for running your django apps.
Jeff Anderson
signature.asc
Description
request that it is easy to mantain and costumize (costum signup in
like an ajax window as an example)
Writing django views is very nice. You are free to use whatever
JavaScript toolkit that suits your needs-- django doesn't force you to
choose one.
Hopefully this is helpful!
Jeff Anderson
Alessandro wrote:
I need to include some django output in other web pages. The problem
is that Sometimes I cannot use server side includes on the other side,
and I don't know how to do.
I thought maybe some javascript or ajax to include with a
Eduardo O. Padoan wrote:
python manage.py shell
Yes, this works, but I'm thinking more of a curses-based app that can
use the admin app's definitions and validations. I'm really looking at a
niche where the admin website is 'too much' and the 'manage.py shell' is
not enough.
, constructive criticism,
etc. If its already been done, I'd be excited to hear about that as well.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
eddie wrote:
Hi. I'm looking to find out how you make form fields in the admin
section non-required. I've done a few hours of searching, but haven't
found the answer yet. If anyone can let me know where I can find it,
it would be much appreciated.
Put blank=True and null=True in your
$ python manage.py shell
>>> from django.conf import settings
>>> settings.AUTHENTICATION_BACKENDS
('reviewboard.accounts.backends.LDAPBackend',)
(to make sure it is in fact set correctly)
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
directory in which you do have write
permission, or change the user you are using to one that has write
permission to the directory that you are in.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ome things that might help to diagnose:
* tail the log of the ldap server to see if a request is actually
hitting it.
* try authenticating a user from the python shell
If you are still stuck, provide some more details, and I'll be happy to
help from there.
Jeff Anderson
signature.asc
D
.
hopefully this helps!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
is usually useful for serving lots of files, or minimizing
overhead when optimizing for a set of given hardware.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
/ (not numbers)
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
, it is fairly straightforward.
Good luck!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
aking things, but it is largely unchanged.
If you are interested in learning more about django, you could try
building your own blog system for practice.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
with the RTF format, but to eliminate the blank line at
the top of an html file, you would do this:
{% load ... %}
instead of
{% load ... %}
Hopefully this helps!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
filer/media/MochiKit.js" does not exist
type "ls /projectprofiler/media/MochiKit.js"
I'm suspecting that "projectprofiler" isn't a directory off /
You need to supply the full path.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
Scott Moonen wrote:
>> I think this way, apache could be a little more faster. Am I right?
>>
>>
>
> I don't think it will be faster. Django normally runs as a long-standing
> process (either inside Apache or as a standalone process, depending on the
> deployment model you've chosen). So,
1 - 100 of 184 matches
Mail list logo