Hello,
I've just installed Django CMS in my Mac OS X 10.4.11 with Python 2.6.
One of the requisites is the PIL library, which I've installed through
"easy_install" and tested after installation.
Even when the Python interpreter loads the module and works fine with
it, Django and Django CMS keep s
You can use ModelForms, it is the easiest way of creating the forms
for your template:
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
That will generate the necessary form and you just need to put the
form templatetags in your template. An example for your code would be:
forms.py
-
I was watching this thread for a while now, and I've got a question.
What is the reason to split the models.py file? I mean, I'm currently
working on a django project, and the models are pretty "simple" (I
usually split them into apps) the biggest models file has five or six
models in the same fil
SSH if you have it available, via the "scp" command, it's
faster and easier in my opinion, but if you only have the FTP
available you should take care of the file permissions and user/group.
Regards,
Oscar Carballal
2013/1/25 John Robertson :
> Hi there, if I want to move a Django
here you should do things like fix up the network configuration
> and
> ssh machine keys) I think that you're going to have trouble "just copy"ing.
>
> Bill
>
> On Fri, Jan 25, 2013 at 10:22 AM, Oscar Carballal wrote:
>>
>> For our project e-cidadania
Hi,
I'm migrating to the new static tag in my project, and I ran into a
problem, in some places I use variables to get the content, but that
doesn't work anymore in django 1.5, is there any way to solve this?
Current code:
What it should be (doesn't work):
I've also asked in StackOverflow (ht
out getting the path to the flags, then tacking on the filename
>> outside the tag...
>>
>> {% static "assets/flags/" %}{{ request.LANGUAGE_CODE }}.gif
>>
>> _Nik
>>
>> On 5/20/2013 12:13 PM, Oscar Carballal wrote:
>> > Hi,
>> >
>
So the SECRET_KEY is stored in the database at syncdb time? What if it gets
compromised, you need to modify that table/row? Just asking out of
curiosity :-)
2013/6/20 John DeRosa
> When we run the development server locally, we often start with an
> already-existing database. We don't re-initia
The manage.py is not executable by default, you should be running it with:
$ python manage.py
or if you want it to be executable forever and run it with ./manage.py do:
$ chmod +x manage.py
2013/9/22 Jimmy Pants
> Noob here. I installed Django, and as the title says, I can run
> django-admin
Any more information about the job? Is remote available? Any other
requirements?
I'm interested in it btw.
2013/10/11 Team UK
> **
>
> Freelance Django developers. 2 years minimum experience required in
> Django/python, CSS, HTML5, Bootstrap and JS backbone.
>
> Candidates will go through scr
Ok, where should I send my CV? :)
2013/10/11 Team UK
> Remotely and Local applicants accepted. I can't really give you a detailed
> job description because we are working on multiple projects.
>
>
> On Friday, October 11, 2013 7:52:18 PM UTC+1, Oscar Carballal wrote:
>
You can do it via de PIL library, which you need to have installed for
using images in Django. Take a look to the approved answer in this SO
question:
http://stackoverflow.com/questions/4764932/in-python-how-do-i-read-the-exif-data-for-an-image
You can invoke the code for obtaining the date on the
Hi,
I'm starting to port my project (e-cidadania) into python 3 and django
1.6rc1, but I'm currently facing a problem that I can't understand.
When I try to do a runserver or a syncdb or any other command, it breaks
with this message:
➜ src git:(python3) ✗ ./manage.py syncdb
TypeError: 'NoneTyp
e internal value in
> Django's meta classes, and that value changed between 1.5.5 and 1.6rc1,
> then it's possible you might start getting errors.
>
> I wouldn't read too much into where ipdb stops -- if you look at the
> stack, it's stopped at the first fram
Oops, sorry Russell, the affected code is here (branch mistake):
https://github.com/cidadania/e-cidadania/blob/python3/src/core/spaces/models.py
2013/10/30 Oscar Carballal
> Thanks Russell, I actually see a comma after the None... I'm not sure what
> you're referring to.
&
As Daniel said, I dont' think also that the entire view is that, but
if it helps, I'll let you a piece of my code for a form (gpl, no
problem if you copy it).
@permission_required('spaces.add_space')
def create_space(request):
"""
Create new spaces. In this view the author field is automa
[OFFTOPIC] Whoa, I thought that only spanish people sounded rude
(because of our way of talking between us) but now reading this mail
(I mean no offense to John) I get the point of why our
"talk-to-the-point" sounds pretty rude.
2011/5/18 Jacob Kaplan-Moss :
> Hi John --
>
> Next time, can you ple
2011/5/26 Brett Parker :
> On 26 May 08:27, Vladimir wrote:
>> Is there a tool to transform MS WORD file into HTML ? I know there is
>> markdown and textile, but I would prefer MS WORD.
>
> http://wvware.sourceforge.net/
>
> --
> Brett Parker
Also http://ginstrom.com/software/doc2html/
--
You re
Hello,
I've just created a PDF (5.6MB, 1042 pages) with all the django 1.3
docs [|], just in case someone need it (sometimes it's useful to have
the docs offline).
Cheers,
Oscar
[1] http://clionesoftware.com/files/docs/django1.3.pdf
--
You received this message because you are subscribed to th
o times to get the contents).
Anyway, thanks for pointing it! :-)
2011/6/2 Jacob Kaplan-Moss :
> On Wed, Jun 1, 2011 at 4:47 PM, Oscar Carballal wrote:
>> I've just created a PDF (5.6MB, 1042 pages) with all the django 1.3
>> docs [|], just in case someone need it (sometimes i
You can import "setting_new.py" from "settings.py", that way you still
only need to stablish settings.py as the DJANGO_SETTINGS_MODULE.
It's strange though, the development server of django (python
manage.py runserver) should import automatically the settings module
and add it to the python path.
2011/6/2 Kann :
> Yep, but what if I just want to load all configurations from the
> entirely new file. What should be the proper value for me to give to
> the DJANGO_SETTINGS_MODULE?
Take a look to https://docs.djangoproject.com/en/dev/topics/settings/
You can load the new settings via "runserv
I recently discovered AlienLayer, a VPS provider in las vegas, they hace a
$19/year plan that is quite good for personal stuff. Take a look to it :)
Enviado desde mi HTC
El 03/06/2011 20:48, "Javier Guerra Giraldez" escribió:
> On Fri, Jun 3, 2011 at 1:12 PM, AJ wrote:
>> To change the question
Take a look to this article i wrote a couple of months ago
blog.oscarcp.com/?p=167 its about installing django 1.3 on dreamhost, it may
help you
Enviado desde mi HTC
El 05/07/2011 20:13, "Jeremy" escribió:
> Hello, I'm completely new to Django and the concept of virtualenv.
> I'm trying to set up
cts are completely outdated, though
they work well, but if you use one of those (for example the social
site, it's the most outdated) you'll probably need to do a lot of
improvements on your own).
If you want to try pinax try the development version (it's two versions
ahead of the stab
Same for me in my personal projects and in our company, we fully switched
to django-allauth and we are quite happy
Regards,
Oscar
--
Oscar Carballal Prego - Senior Software Developer
http://oscarcp.com | @pizte
2014-07-23 8:15 GMT+01:00 Santiago L :
> El sábado, 19 de julio de 2014 02:17
26 matches
Mail list logo