https://code.google.com/p/wkhtmltopdf/ does a good job for us. We just call
the shell script from python.
On 6 August 2013 22:27, Gustavo Andrés Angulo wrote:
> Hi,
>
> > Which is best tool to generate PDF in python django
> >
>
> Is hard to say which is better, please make a
Hi there,
What does your template index.html look like ?
Cheers
http://bulkan-evcimen.com
On Wed, Aug 7, 2013 at 1:19 PM, Muhammed TÜFEKYAPAN
wrote:
> Hello everyone,
>
> I write a basic model in django 1.5.1
>
> My model is looks like this:
> class
Hello everyone,
I write a basic model in django 1.5.1
My model is looks like this:
class Excuse(models.Model):
text = models.CharField(max_length=300)
def __unicode__(self):
return self.text
And i have a basic function to get random excuse from this model.
def home(request):
output =
your Django vesion is too low, the latest offical version have been 1.5.1
在 2013年8月7日星期三UTC+8上午5时07分16秒,zweb写道:
>
>
> Can we use "with LOCK" in django views. I am using Apache, mod_wsgi,
> Django 1.3.1, mysql.
>
> Any conflicts or Known issues.
>
>
>
>
--
You received this message because
Can we use "with LOCK" in django views. I am using Apache, mod_wsgi,
Django 1.3.1, mysql.
Any conflicts or Known issues.
--
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,
I have a somewhat odd scenario. I am using a read only database that i have
access through my property management software. They allow the user to
define fields in there software. However they dont show up as specific
fields in the database. The database has 2 tables related to them
Read a full description of the 1.2 Release here : http://bit.ly/187MJYX,
including previews, bug fixes, and product enhancements! If your
interested in the Django Driver, it can be found on
github: http://bit.ly/15Gpis6
--
You received this message because you are subscribed to the Google
I've been searching for days on this topic. So far no...there does not
exists anyway to connect sybase ase with django in any shape or form. I
will however being attempting to build one for the next two weeks. As of
right now the plan is to modify django-pyodbc to be compatible with pybase
It's pretty straightforward to get django to automatically upload
everything to s3 using https://github.com/qnub/django-boto/
I've only used it to server directly from s3, but it sounds like you might
want to upload to s3 and then serve from cloudfront. cloudfront uses edge
servers to serve
Am I correct that it is still safe to have compression enabled for static
files? Assuming you're not sending secrets inside CSS or JS files?
http://wiki.nginx.org/HttpGzipModule says that the gzip on directive can be
set in location.
On Tuesday, 6 August 2013 17:58:42 UTC+1, Donald Stufft
Thanks so much for this. Exactly what I needed. Works great and I've also
discovered reverse_lazy() for use with my urls.py in cases such as the
next_page variable for authentication. One issue I have found is when
wanting to have urls with optional arguments. Overloading the view function
Another tip is to check out Bitnami. I've used them a couple times now
(both VMs and stack installs). They do a pretty good job of getting a stack
you want on Windows real fast.
http://bitnami.com/stack/django/installer
(note it comes with MySQL and Postgres)
--
You received this message
On Tue, Aug 6, 2013 at 4:38 PM, Glenn Vulkers
wrote:
> Hello ,
>
> I'm wondering how I can install Mysql to use in Python Django on my Windows
> PC.
> I tried to install Ubuntu on a Virtual PC but it's just not working. So I
> managed to get Django
> on my Windows
Hi all,
My question is not a pure Django question, but since i'm working with
django and there are probably people here with experience i'll try anyway..
I'm working on an app that runs on 2 servers, the first is a management
server where my users in certain page can upload images\videos to my
Il 06/08/2013 18:08, Javier Guerra Giraldez ha scritto:
On Tue, Aug 6, 2013 at 10:43 AM, Avraham Serour wrote:
for development just use sqlite
+1
not only SQLite is totally installation-free and management-free, but
also its SQL parser is more compliant than MySQL, so
Take a WAMP and add mod_python to apache for full blown compatibility.
or just use the mysql form the wamp system.
thx
Am 06.08.2013 17:38, schrieb Glenn Vulkers:
Hello ,
I'm wondering how I can install Mysql to use in Python Django on my
Windows PC.
I tried to install Ubuntu on a Virtual
On Tuesday, August 6, 2013 3:42:01 PM UTC+1, Jacob Kaplan-Moss wrote:
>
> We plan to take steps to address BREACH in Django itself, but in the
> meantime we recommend that all users of Django understand this
> vulnerability and take action if appropriate.
>
>
Would randomizing the CSRF token on
On Tue, Aug 6, 2013 at 10:43 AM, Avraham Serour wrote:
> for development just use sqlite
+1
not only SQLite is totally installation-free and management-free, but
also its SQL parser is more compliant than MySQL, so there are fewer
surprises when going SQLite->PostgreSQL than
I am currently upgrading a project from Django 1.3 to 1.5 and having
trouble getting Django to recognise my compiled .mo translations.
My project is structured as follows:
/toplevelfolder
/myproject
/app1
/app2
/app3
/templates
/app1templates
Hi Jacob,
Thanks for this!
Idea!
Since many of the mitigations hint at CSRF improvements, consider fixing
the issue with CSRF. This should automatically fix issues for both gzip
middleware and external projects like mod_deflate etc.
That is, go with mitigation 3.4 and 3.6.
Regards,
Benjamin
for development just use sqlite
On Tue, Aug 6, 2013 at 6:38 PM, Glenn Vulkers <
luksindit-tjopt...@hotmail.com> wrote:
> Hello ,
>
> I'm wondering how I can install Mysql to use in Python Django on my
> Windows PC.
> I tried to install Ubuntu on a Virtual PC but it's just not working. So I
>
Hello ,
I'm wondering how I can install Mysql to use in Python Django on my Windows
PC.
I tried to install Ubuntu on a Virtual PC but it's just not working. So I
managed to get Django
on my Windows PC, but I cant go any further with working with it, because I
don't have MySQL.
I've looked
Hi folks --
At last week's Black Hat conference, researchers announced the BREACH
attack (http://breachattack.com/), a new attack on web apps that can
recover data even when secured with SSL connections. Given what we know so
far, we believe that BREACH may be used to compromise Django's CSRF
wow! discarded this way somewhat diffuse, I will use view and
request to capture the username, thank you
El lunes, 5 de agosto de 2013 16:36:42 UTC-5, ke1g escribió:
>
> By session name, I presume that you mean the name of the user whose
> request caused you to call a model method.
>
> If
+1
At least install some linux distro into VirtualBox, ... Ubuntu if you
are beginner...
I have W8 on my main machine, but for gaming mainly, for any serious
development get linux, on dualboot or vbox ... I tried to do it on
Windows, but once you smell the ease of things in linux, you'll
try to use linux.
running python on win is suffering
--
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 email
to django-users+unsubscr...@googlegroups.com.
To post to this
On Tue, Aug 6, 2013 at 8:27 PM, l33t wrote:
>
> Hello,
>
> When I create a custom user model with AbstractBaseUser, a password and a
> last_login field is automatically generated which I am not using.
> How can I explicitly instruct not to create these fields while
Hello,
When I create a custom user model with AbstractBaseUser, a password and a
last_login field is automatically generated which I am not using.
How can I explicitly instruct not to create these fields while creating a
table in the database?.
Also, is there any specific use of this?.
Thanks
Hi,
> Which is best tool to generate PDF in python django
>
Is hard to say which is better, please make a selection and
choose which you like best, I use relatorio[1] by the ease
with which users can customize their report.
[1] https://pypi.python.org/pypi/relatorio
Regards.
> --
> You
In that case, create a model in models.py, that represents your plot data..
add some data ...
and in views filter some data from that model ..
pass them to matplotlib
render to image
and either send back a image, or save the image and render html with
path to that image..
If you don't know
Well, this may not be the best idea
On a production server, you'd make it differently
Sure, you could do it this way, but Django should serve dynamic context,
so unless you are rendering images on your machine, you should use
Nginx, or apache to serve your images, aka. staticfiles/media
Exactly, tell us what is required on the page..
If it is a simple informational website, with some content, you can
either use django's staticpages, or some CMS
few examples:
https://www.django-cms.org/
https://github.com/lunemec/django-pages # I use this to run my own website
On
On Tue, Aug 6, 2013 at 5:59 AM, Jani Tiainen wrote:
> Hi,
>
> I've legacy database that is rather large (around 300MB) containing lot more
> than just data (triggers, stored procedures and such).
>
> Now how I can test with such a data? Preferably I would like to load data to
This was more than 5 years ago… wow!
Sorry, I have absolutely no idea now. I would suspect that "yes," I got it
sorted, but I would anticipate that the internals of Django's ORM have
changed significantly since then, so even if I could remember how I did it,
it wouldn't be of much use…
Perhaps
Hi
I have a doubt, to show a picture do this:
*return HttpResponse (photo, content_type = 'image / jpeg')*
And if I show you a video as you want to do? Someone can help me?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
On 04/08/2013, navnath gadakh wrote:
> Which is best tool to generate PDF in python django
I sucessfully used django-appypod before. It uses a rather strange
library called appy.pod that uses openoffice odt files as a template.
If you have an openoffice server running you can generate a pdf out
We use Weasyprint.
http://weasyprint.org/
Am Montag, 5. August 2013 08:48:40 UTC+2 schrieb navnath gadakh:
>
> Which is best tool to generate PDF in python django
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
what is a corporate site exactly?
from what I understand a lawyer office website is nothing more than a bunch
of static pages, like a business card, you could use a cms, but you could
just generate some static pages
On Tue, Aug 6, 2013 at 11:41 AM, Sithembewena Lloyd Dube
Hi Sean,
You definitely can do that in Django.
On Tue, Aug 6, 2013 at 6:18 AM, Mike Dewhirst wrote:
> On 6/08/2013 2:07pm, sean chen wrote:
>
>> I need to build a site for a small law firm. I looked at the poweredby
>> pages http://www.djangosites.org/, but I found it
Two thoughts:
1. If you are analysing tweets, why are you deleting on a daily basis?
Wouldn't a longer term view give you a better picture?
2. Why not use the status_id field from the tweet as your id? The twitter
have the problem of dealing with it's size, and you will (should, or at
least
40 matches
Mail list logo