Re: ImportError failure

2014-10-22 Thread Juan Carlos
as > > mysite/ > ... > mysite/ > __init__.py > ... > > in this __init__.py, you may have > class Example(object): > ... > ... > > this is OK either ;) > > > - Serdar Dalgıç <s...@serdardalgic.org > > FLOSS Developer, Life & N

ImportError failure

2014-10-22 Thread Juan Carlos
Hi everyone, When I execute python manage.py runserver it appers: ImportError: cannot import name 'example' from 'exsite' The relative code in the settings.py file is: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

ImportError cannot import name

2014-10-22 Thread Juan Carlos
Hi everyone, When I execute the command: python manage.py runserver & The response is: Traceback (most recent call last): File "../manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in

how to save in inline form total sum

2014-10-21 Thread carlos
Hi, i need sum inlines field but i no have idea example for more clean, i have 2 models in models.py i have: class ModelA(models.Model): field1 = charfield(...) field2 = integeterfield() . CHOICE_TYPE = ((1,"option1"),(2,"option2"),(3,"option3")) class ModelB(models.Model):

Re: how to update data in FK fields another Model

2014-10-17 Thread carlos
+Collin Thank this is working perfects :) Cheers On Thu, Oct 16, 2014 at 3:31 PM, Collin Anderson wrote: > Hi, > > Would this work? > > ModelA.objects.filter(id=self.fk_name_id).update(field_count=F('field_count') > + 1) > > Collin > > -- > You received this message

Re: how to update data in FK fields another Model

2014-10-16 Thread carlos
ct.field_count = F('field_count') + 1 > > Other than that, there are a few weird things about the code, for example: > > product = ModelA.objects.get(id=self.fk_name.id) > > Why not just use > > product = self.fk_name ? > > On Thu, Oct 16, 2014 at 5:09 PM, carlo

how to update data in FK fields another Model

2014-10-16 Thread carlos
Hi, i need update a fields the other model i have FK relation ok this is my code ModelA(models.Model): name=charfield(...) field_count = integerfield() . ModelB(models.Model): fk_name = FK(ModelA, related_name='models_a') # other fields def save(self, *args,

Re: Django 1.7 User login via Email or Username

2014-10-16 Thread carlos
Hi, you see the full example in docs https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#a-full-example Cheers On Wed, Oct 15, 2014 at 2:52 AM, monoBOT wrote: > You can implement an alternative authentication backend like so: > > *on your settings:* > >

Re: VIdeo Lectures ?

2014-10-06 Thread carlos
i thing this good places for learn django http://gettingstartedwithdjango.com/ Cheers On Mon, Oct 6, 2014 at 8:29 AM, Julo wrote: > Godjango.com !! > Really cool videos! > -- > *From: * rishabh yadav > *Sender: *

Re: help with idea

2014-10-06 Thread carlos
Collin thank so much really help me! Cheers On Sat, Oct 4, 2014 at 11:09 AM, Collin Anderson wrote: > If you change how your dictionary is formatted, it can be much easier: > dicc_one = { > 'string1': {'fieldsFK__total_one__gt': 0}, > 'string2':

Re: Override runserver django 1.7

2014-10-06 Thread Carlos Perche
great, now it is working. but i have still a question, why the position in the installed_apps does not affect the migrate command and affect the runserver command ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Override runserver django 1.7

2014-10-06 Thread Carlos Perche
Hello, why not is possible override the command runserver.py in my custom app in Django 1.7, like this # encoding: utf-8 from django.conf import settings from django.core.management.base import CommandError, BaseCommand # from django.contrib.staticfiles.management.commands.runserver import

help with idea

2014-10-03 Thread carlos
Hi i need have this in my views! but not working dicc_one = {'string1': 'fieldsFK__total_one__gt=0', 'string2': 'fieldsFK__total_two__gt=0', 'string3': 'fieldsFK__total_three__gt=0', 'string4': 'fieldsFK__total_four__gt=0', }

Applying migrations to (non-interactive) production server

2014-10-02 Thread Carlos A. Carnero Delgado
something? TIA, Carlos. -- 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 group, send email to dj

Re: Change GFK to FK

2014-09-29 Thread carlos
Hi, ok my questions is how to create a data migration, populating the FK data??. my old data no have fk only content_type and object_id for my relations with my class ModelMain, if fk = object_id?? or content_type? thank On Mon, Sep 29, 2014 at 6:23 AM, Tom Christie

Change GFK to FK

2014-09-28 Thread carlos
Hi, is posible to change GenericForeingnKey to ForeignKey without losing data? any link to explain the trick? I have an old application with GFK but now I want to FK moment but I will not lose data this is example my models old and below the new models http://pastebin.com/ym6Scrmd Cheers --

Re: Query parameters in the URL, with REST Framework

2014-09-09 Thread carlos
Hi, maybe you need read documentation about filtering http://www.django-rest-framework.org/api-guide/filtering Cheers On Mon, Sep 8, 2014 at 1:41 PM, Elio Gerson Clímaco Herrera < elioclim...@gmail.com> wrote: > Hi, everybody. > > I, stared using *REST Framework*

Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Carlos Aguilar
l.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Carlos Aguilar Consultor Hardware y Software DWD http://www.dwdandsolutions.com http://www.houseofsysadmin.com Cel: +50378735118 USA: (301) 337-8541 -- You received this message becau

Re: websockets in django

2014-08-25 Thread Carlos Aguilar
uqm-25HQMeSMhp6Ayk2G2kso17-uYe8Ue%2BKu0Xu%2BJqYQ%40mail.gmail.com?utm_medium=email_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google

Re: wysiwyg image manager suggestions

2014-08-20 Thread carlos
Maybe you try django-ckeditor-updated https://pypi.python.org/pypi/django-ckeditor-updated On Wed, Aug 20, 2014 at 9:13 AM, wrote: > Any suggestions on a wysiwyg editor for Django that will allow: > >- browser images and insert image in wysiwyg >- upload image

Re: writing simple forms

2014-07-29 Thread carlos
Hi, this is for you https://docs.djangoproject.com/en/dev/topics/forms/ Cheers On Tue, Jul 29, 2014 at 8:52 PM, Dtr Prasad wrote: > I want write simple forms like file uploading,sesion tracking using python > modules. > How can it be done through Django,does not require

Re: Django 1.7 - What are you most excited about?

2014-07-29 Thread carlos
Hi maybe you need read the release note Django 1.7 about the new features https://docs.djangoproject.com/en/dev/releases/1.7/ Cheers :) On Tue, Jul 29, 2014 at 7:31 PM, Ryan Blunden wrote: > Hi everyone, > > I'm giving a lightening talk at the San Francisco Django

Re: Django package to convert Less to CSS

2014-07-29 Thread carlos
https://pypi.python.org/pypi/lesscss Cheers On Tue, Jul 29, 2014 at 3:27 PM, Chen Xu wrote: > Hi, Everyone > I am wondering is there a good django package that can convert less file > into css file? > > > Thanks > > > -- > ⚡ Chen Xu ⚡ > > -- > You received this message

Re: asyncio integration /benefits & performance

2014-07-29 Thread carlos
If you need real time application i thing you need read about gevent http://www.gevent.org/ other lecture is socketio and exit third app django https://github.com/stephenmcd/django-socketio and here other thing http://www.pixeldonor.com/2014/jan/10/django-gevent-and-socketio/ Cheers On Tue, Jul

Re: inicio en django

2014-07-26 Thread Carlos Andre
ir até a pasta com o prompt:(admitindo que salvasse o django no desktop) cd c:\user\NOMEUSUARIO\desktop\Django-1.6.5\python setup.py install 2014-07-26 19:27 GMT-03:00 Carlos Andre <eucan...@gmail.com>: > se é no ubuntu, poderia ser sudo apt-get install python-django; > se é no wi

Re: inicio en django

2014-07-26 Thread Carlos Andre
se é no ubuntu, poderia ser sudo apt-get install python-django; se é no windows, use o prompt de comando e vá até a pasta do django que baixasse, em seguida faça pyhon setup.py install ele instalará o django! 2014-07-26 17:10 GMT-03:00 juantonio v : > hola tengo el

Re: slide show

2014-07-22 Thread Carlos Andre
please! i need run that! 2014-07-22 11:43 GMT-03:00 Carlos Andre <eucan...@gmail.com>: > I already have a slideshow ready but missing is using the image to be > added in the admin to pass the slide! > > > > 2014-07-22 10:50 GMT-03:00 Tom Evans <tevans...@googlema

Re: slide show

2014-07-22 Thread Carlos Andre
I already have a slideshow ready but missing is using the image to be added in the admin to pass the slide! 2014-07-22 10:50 GMT-03:00 Tom Evans <tevans...@googlemail.com>: > On Tue, Jul 22, 2014 at 10:38 AM, Carlos Andre <eucan...@gmail.com> wrote: > > Hello guys,

slide show

2014-07-22 Thread Carlos Andre
Hello guys, I'm needing to create a slide of images that come from the / media / folder, the structure of the slide is ready, missing how to reference images in the templates here are the codes views.py, models.py and of the slide in html https://gist.github.com/eucandre/1be6120bf51a09a5a62a can

Re: Recommendation/alternative for multi-tenancy under django

2014-07-18 Thread carlos
Hi, Subodh right now i find information for multi-tenant project in django and see this app, i never used only i read information for the future project. https://github.com/bernardopires/django-tenant-schemas maybe help you. Cheers On Fri, Jul 18, 2014 at 6:56 PM, Mike Dewhirst

Find link in a "dynamic" page

2014-07-17 Thread Carlos Perche
Hello guys, could someone help me with this ... I am needing to find the link Ext # http://docs.sencha.com/ext/5.0.0/apidocs/source/Focusable.html-util-Focusable starting the url http://docs.sencha.com/ext/5.0.0/apidocs/ The problem is that when having to recover the contents of the page with

imagens com django templates

2014-07-14 Thread Carlos Andre
Olá pessoal, estou tentando usar um slideshow e uso um for para iterar as imagens que passam vidas de um repositório, problemas que funciona sem o comando for no template, quando adiciono ele mostra nada para! Pelo que vejo há problemas no reconhecimento dos comandos de templates, caso como o que

Re: MultiValueDictKeyError in Django admin edit inline generic model

2014-07-09 Thread carlos
Hi, me again :) i forgot mention a use the latest release django 1.6.5 and python 2.7.5 any help or tips? thank. On Wed, Jul 9, 2014 at 9:38 PM, carlos <crocha09...@gmail.com> wrote: > Hi, i have this error when i edit the data, is similar error the next link > > > http:/

MultiValueDictKeyError in Django admin edit inline generic model

2014-07-09 Thread carlos
Hi, i have this error when i edit the data, is similar error the next link http://stackoverflow.com/questions/19741314/multivaluedictkeyerror-in-django-admin but the only different is i use generic relation, this is my models.py class Photos(models.Model): name =

Re: Serving static files from another directory rather than "statics"

2014-07-07 Thread carlos
Hi, maybe you need use this third party solution http://django-compressor.readthedocs.org/en/latest/ and other is https://django-pipeline.readthedocs.org/en/latest/ Cheers On Mon, Jul 7, 2014 at 5:58 PM, Chen Xu wrote: > Hi Everyone, > I am working on a site, under my

Re: Django 1.6 + Mysql

2014-07-07 Thread Carlos Arturo Sanchez Rivera
Check this tw: https://twitter.com/iscenigmax/status/485657005567115264 El sábado, 5 de julio de 2014 19:03:56 UTC-5, Henrique Oliveira escribió: > > hi there, > > I am getting this error when using Mysql connector: > > File "/opt/b360/lib/python3.4/site-packages/django/core/handlers/base.py",

Re: Syntax highlighting using vim

2014-06-27 Thread carlos
maybe read this https://code.djangoproject.com/wiki/UsingVimWithDjango or install this plugin https://github.com/yodiaditya/vim-pydjango cheers On Fri, Jun 27, 2014 at 4:04 AM, Christopher Schenk < christopher.sch...@gmail.com> wrote: > >

Re: Criar slideShow

2014-06-25 Thread Carlos Andre
> > 2014-06-24 21:50 GMT-03:00 Carlos Andre <eucan...@gmail.com>: > >> Olá pessoal, tudo bem com todos? >> Gostaria de uma solução que permita referenciar fotos para m slideshow >> com até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id! >&

Re: Copied django project to shared host from repo - can't import settings

2014-06-25 Thread carlos
ok i make different configuration #!/home5/myorg/.virtualenvs/mydjango/bin/python import sys, os # Add a custom Python path. sys.path.insert(0, "/home//projects/") sys.path.insert(0, "/home//projects/yourproyect") from flup.server.fcgi import WSGIServer os.environ['DJANGO_SETTINGS_MODULE'] =

Re: Copied django project to shared host from repo - can't import settings

2014-06-24 Thread carlos
Hi, maybe show the content mysite.fcgi and .htaccess, the error say not exist your project mysite maybe the path is not good in mysite.fcgi! Cheers On Tue, Jun 24, 2014 at 3:39 PM, Lee wrote: > Hello, > > I setup Django successfully on my shared Bluehost account following

Criar slideShow

2014-06-24 Thread Carlos Andre
Olá pessoal, tudo bem com todos? Gostaria de uma solução que permita referenciar fotos para m slideshow com até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id! Obrigado pela atenção de todos! -- You received this message because you are subscribed to the Google Groups

Django Rest Framework create api-root ???

2014-06-20 Thread Carlos Perche
Using DjangoRestFramework, how can I create api-root with all urls for my apps Like this e.g. I have following apps core_api views models serializers urls equipments views models serializers urls companies views models serializers urls contacts views models

Re: Chat application

2014-06-18 Thread carlos
Hi, maybe not all with django, maybe you need learn gevent http://www.gevent.org/ socket.io http://socket.io/ and here is example for a chat with redis and django + gevent + socketio etc. https://github.com/rlr/django-gevent-socketio-redis-chat-example Cheers On Wed, Jun 18, 2014 at 4:46 PM,

Re: Any position for Django/Python Developer?

2014-06-18 Thread carlos
Hi or maybe look for odesk.com and similar website for freelancer On Wed, Jun 18, 2014 at 10:31 AM, Huy T wrote: > If you want to relocate why not select some target cities. > > Otherwise why not search dice.com (job board) and google perhaps. > > On Jun 18, 2014, at 11:08

How to have two separate models authentication system in the same django project?

2014-06-10 Thread Carlos Perche
Hi, Is there a way to have multiple implementations of django's authentication/authorization system? In my practice blog-type site, I've implemented django's auth/auth system as is. I'd like to use the default implementation solely for administrators of the site. For users of the site, on

Re: OperationalError happening after giving authorization to the class based view

2014-06-06 Thread carlos
Hi, 2 choice 1. erase de database y create again the migration: $rm database && rm -r addressbook/migrations $./manage.py schemamigration addressbook --initial $./manage.py migrate 2. create manually fields owner_id enter terminal or console i see you use sqlite3 i recomended install this

Re: 1.6.5 as a zip for download?

2014-05-28 Thread carlos
Hi @NeilWalker maybe you need install 7zip http://www.7-zip.org/ in yours winbug Cheers On Wed, May 28, 2014 at 11:09 AM, Neil Walker wrote: > Thanks, I couldn't figure out how to get a zip from github :) > > Might be a good idea to have a zip version at the website

Re: virtualenv help needed

2014-05-28 Thread carlos
Hi, when install virtualenv you need create yours enviroments then you need install all application you need example: $virtualenv django14 #create your enviroments $source django14/bin/activate #activate your enviroments $pip install django==1.4.5 #install all you need application o third party

why I change url is showing other user's data?

2014-05-24 Thread Carlos Perche
for exemple, I have following url: http://tenant.com:8000/accounts/test1/edit/ when my user right authenticated is test1, but if I change the url to http://tenant.com:8000/accounts/admin/edit/, the data of user admin is showing in profile form and if I change and save this form the admin's

Development SaaS with Django

2014-05-24 Thread Carlos Perche
Hello, I need to create an app like study case django-cms Dataprotect (http://www.dataprotectcloud.com/), it need be an SaaS with user accounts, plans and pricing, multi tenant, etc. I want to know if Django-CMS and DjangoShop do have these native resources. Or if you can help me with built

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread carlos
Hi, Digital Ocean have many tutorial begginner : https://www.digitalocean.com/community/articles/how-to-deploy-a-local-django-app-to-a-vps advanced: https://www.digitalocean.com/community/articles/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn Cheers On Fri, May 23, 2014

Re: how can i get all values of a field

2014-05-23 Thread carlos
Hi, you read the documentation? https://docs.djangoproject.com/en/1.6/ref/models/querysets/ On Fri, May 23, 2014 at 6:36 AM, wrote: > In Models i declare Novel: name,category > table structure: > --- > id| name |category >

Re: Opinion needed for a BookMarker project - Regarding CSRF token

2014-05-12 Thread carlos
Hi you read this part of the exempt, if you not need csrf https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#django.views.decorators.csrf.csrf_exempt cheers On Mon, May 12, 2014 at 2:01 PM, Aseem Bansal wrote: > Hi Sanjay > > I think you misunderstood a bit. The JS

Re: Creating an object using Foreign Key for Users but filtered by group

2014-05-05 Thread Carlos Futino
Hi, you could change the QuerySet of the ModelChoiceField. I'd do it in the forms __init__ method. Like this: class MessageForm(forms.ModelForm): def __init__(self,*args,**kwargs): super(MessageForm,self). __init__(*args,**kwargs) self.moderator.queryset = User.objects.filter(...*Place your

Re: How to filter queryset object list with matching parameter?

2014-04-10 Thread carlos
hi, maybe you filter you queryset user_list = Model.objects.filter(user__name=user.name ).filter(other__field=user.email) Cheers On Thu, Apr 10, 2014 at 9:44 AM, nobody wrote: > Hi, > > How can I filter an item from the queryset object list if the name is > matching?

the best ways export datas for my project

2014-03-26 Thread carlos
Hi all, What is de best ways for export data? for example i have 3 apps, but apps 1 and 2 have relation with apps 1 and i want download data in only one file all data APP1 class Model1(...): field1 = field2 = ... -- APP2 class Model2(): fk =

Re: Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Carlos Daniel Ruvalcaba Valenzuela
I'm still not sure of what you need, so there is something (a process) sending a message through rabbitmq with data that needs to be written to the DB, now, this needs to be synchronized, sync with what? an http request? ordered execution of writes? Regards, Carlos Ruvalcaba On Tue, Feb 25, 2014

Re: what is the Fastest django application server?

2014-02-17 Thread Carlos Daniel Ruvalcaba Valenzuela
a lot of useful features (emperor mode, zerg, mules). I can tell you that I would pick on what I need rather than speed between those two, they are very close to each other to make a huge difference at all. Regards, Carlos Ruvalcaba On Mon, Feb 17, 2014 at 11:39 AM, Javier Guerra Giraldez <

Re: I badly speak in English

2014-02-14 Thread carlos
Hi maybe use http://south.readthedocs.org/en/latest/ for migrate your schema! Cheers On Fri, Feb 14, 2014 at 10:50 AM, Віталій Лисенко wrote: > I'm a newbie. I have question: > How to upgrade the database, if introduced in her structural remove > > -- > You received

Re: makemessages error. Please help!

2014-02-10 Thread carlos
hi maybe you need configure the setting put path for you locale dirs LOCALE_PATHS = ( os.path.join(SITE_ROOT,'locale'), ) https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths Cheers On Mon, Feb 10, 2014 at 9:44 PM, whitelotus wrote: > > Hi, all, > > To

Encoding for test database

2014-01-25 Thread Carlos Aguilar
character with byte sequence 0xc6 0x92 in encoding "UTF8" has no equivalent in encoding "LATIN1" I am trying to load a fixature to use with geodjango. I appreciate your help with this. Best Regards -- Carlos Aguilar Consultor Hardware y Software DWD http://www.dwdandsolutions.c

Re: Error when using apache 2.4.6

2014-01-17 Thread carlos
Hi i remember one time i try use de version apache 2.4.6 with django and virtualhost but never work correctly and change apache for nginx i resolved my problem :) Cheers On Fri, Jan 17, 2014 at 12:38 PM, Jasvir Singh wrote: > On Fri, Jan 17, 2014 at 8:53 PM, Sandeep

Re: django websockets

2014-01-16 Thread carlos
Hi maybe this link help you https://www.djangopackages.com/grids/g/websockets/ Cheers On Thu, Jan 16, 2014 at 8:34 PM, Silviu Dicu wrote: > Hello, > > I'm looking to implement websockets with django. > Any hints will be appreciated. > > thanks! > > -silviu > > -- > You

Re: trying to introduce django custom templatetags - some jinja also involve

2014-01-16 Thread carlos
Hi maybe help you this link http://askbot.org/en/questions/ ask your question theres! Cheers On Thu, Jan 16, 2014 at 9:44 AM, django-newb wrote: > I am working on a project where I used a open source framework. Here is > the link for the opensource framework: >

Re: Can we upgraded from django 1.1.1 to 1.6.1??

2014-01-16 Thread carlos
I thing YES, but you first need sure complete understand django 1.6.1 and replace pieces of code when get error in you application. other thing is you need read all releases notes all version of django: 1.2 1.3 1.4 1.5 1.6 and you discover what is new, what is deprecated and what is removed! in

Re: Django Website Development issue

2014-01-10 Thread carlos
actually yes bluehost support django read this http://blog.ruedaminute.com/2011/01/2011-installation-instructions-for-django-on-bluehost/ maybe help you!! Cheers On Fri, Jan 10, 2014 at 9:08 AM, Vijaya Reddy wrote: > Thanks Tim for quick reply. > > I learned django

Re: tutorial part3 : polls didn't match URL patterns

2014-01-10 Thread carlos
change this url(r'^polls/', include('polls.urls')'), for this url(r'^', include('polls.urls')'), On Fri, Jan 10, 2014 at 2:40 AM, AJ NOURI wrote: > I have Python 2.7.3 > > I am new in django and I am following the tutorial 3 at : >

Re: Django and Bind jQuery Grid to MySql Database using PHP

2014-01-08 Thread carlos
Hi you not need the 3 flies you only need create the proyect and them 1 app this app is the data you need create the views inside one function similar data.php but in python use impor json and them create de index.html similar de index.php so you replace this connect.php == settings.py data.php

Re: Question about Django, Heroku, and MySQL

2014-01-07 Thread carlos
Hi you check this link https://devcenter.heroku.com/articles/getting-started-with-django maybe help you !! Cheers On Tue, Jan 7, 2014 at 1:17 PM, ET wrote: > Hi, > > I am currently attempting to deploy a basic Django app to Heroku. Ideally, > I would like to use a

Broken links even after change the site information

2014-01-06 Thread Carlos Quiros
b-env)[cquiros@rmg formhub]$ python manage.py dumpdata sites Your environment is:"formhub.preset.default_settings" [{"pk": 1, "model": "sites.site", "fields": {"domain": "http://data.ilri.org/formhub/;, "name": "Formhub

Django manage.py returns ValueError: zero length field name in format

2014-01-05 Thread Carlos Quiros
])) ValueError: zero length field name in** format* Any idea what is wrong? I am also running the same application in another server but with Python 2.7.5 and it works ok. Note: DJANGO_SETTINGS_MODULE is an environmental variable in both systems Thanks, Carlos -- You received this

Media files django 1.5

2013-12-29 Thread Carlos Andre
hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem still insists! have something new to be

Re: for updating table

2013-12-14 Thread carlos
Hi manually use alter table http://dev.mysql.com/doc/refman/5.0/es/alter-table.html or http://www.postgresql.org/docs/9.1/static/sql-altertable.html Cheers On Sat, Dec 14, 2013 at 4:11 AM, Abhishek ranjan < abhishek.ranjan0...@gmail.com> wrote: > Any new concept to update the table other than

Re: Difference between signals and celery

2013-11-29 Thread Carlos Daniel Ruvalcaba Valenzuela
are executed locally. Regards, Carlos Ruvalcaba On Fri, Nov 29, 2013 at 11:52 AM, Robin Lery <robinl...@gmail.com> wrote: > This may be a lame question, but I am really confused with these two. I > know *signals* are used to do some task when something has happened. But > wh

How to add timezone support in Django (1.5) admin

2013-11-26 Thread Carlos Villavicencio
I am using django 1.5 with pytz. Currently all the datetimes stored in the database are in UTC. The frontend application is timezone aware (users worldwide), that means that I store the user timezone in his profile. Administration is using the default timezone as in settings.py (UTC). What

Re: Libraries for Facebook login

2013-11-22 Thread carlos
try https://github.com/omab/python-social-auth Cheers, On Fri, Nov 22, 2013 at 5:00 PM, coded kid wrote: > Use django_social_auth by Arneb. It rocks! > > > On Friday, 22 November 2013 06:02:30 UTC+1, sk wrote: >> >> I have seen few posts on various Facebook libraries

Re: Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
Note: one other thing is that the legacy DB we're using has a character varying (PostGres) type as its primary key, even though it's really just an integer that should probably be auto incrementing serial type. We're not adding anything new to this DB so the auto behavior isn't a big deal. It

Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
So, first thing: I come from a C++ background and I've been building my first site with Django. As I normally try to do in C++, I don't want to store any more information than I have to since that can lead to big problems with data consistency. In C++, I do this with private members /

Re: Defining new project as a service at nignx

2013-10-15 Thread carlos
Hi maybe you need use supervisord http://supervisord.org/ Cheers On Tue, Oct 15, 2013 at 3:12 AM, Muhammed TÜFEKYAPAN wrote: > Hello everyone, > > Yes I know that but now my problem is our new project doesn't seen on > services list and so I can't start it. > > I use

Re: Defining new project as a service at nignx

2013-10-14 Thread carlos
Hi you need read this http://wiki.nginx.org/ServerBlockExample http://wiki.nginx.org/DjangoFastCGI Cheers On Mon, Oct 14, 2013 at 11:17 AM, Muhammed TÜFEKYAPAN wrote: > Hello everybody, > > > I use digitalocean as a server. I upload my django project files on my >

Re: Multiple versions of Django

2013-09-30 Thread carlos
Hi, uwsgi is too good option http://uwsgi-docs.readthedocs.org/en/latest/ and nginx with virtualenv On Mon, Sep 30, 2013 at 11:45 AM, Peter Herndon wrote: > I would suggest using separate virtual environments, each with gunicorn ( > http://gunicorn.org/) installed into the

Couple of random Error 500 issues

2013-09-20 Thread Carlos Villavicencio
Hello, I have a django project running on digitalocean (in a 512M server) and suddenly it appears Error 500 on the Apache. I'm running wsgi and only 2 users (because we are starting) Looking on the logs, the errors were the following: 1. ImproperlyConfigured: Error importing middleware

Re: Receive parameter via post

2013-09-19 Thread carlos
Hi, try in the views: print request.POST['id'] for see de value cheers, On Thu, Sep 19, 2013 at 7:25 AM, Hélio Miranda wrote: > Good. > I have my client application server, and was trying to send an id > parameter via a post like this: > $scope.deleteIMG = function(ID){ >

Upload de musicas (music upload)

2013-09-16 Thread Carlos Andre
Olá pessoal, tudo bom? Eu gostaria de uma ajuda de como fazer upload de músicas no banco de dados, como faço upload de arquivo. Gostaria de exemplos. Hello guys, how are you? I would like some help on how to upload songs in the database, how do I upload file. I would like examples. -- You

Re: Resize image size in the view

2013-09-11 Thread carlos
at 12:26 AM, Robin Lery <robinl...@gmail.com> wrote: > Yes, same here. That's why I was asking, whether there's a way to call the > resize image in the view. > > > On Wed, Sep 11, 2013 at 11:55 AM, Karl Arunachal < > kakararunachalserv...@gmail.com> wrote: > &g

Re: Resize image size in the view

2013-09-11 Thread carlos
Hi you try use http://sorl-thumbnail.readthedocs.org/en/latest/ is good Cheers On Tue, Sep 10, 2013 at 10:53 PM, Robin Lery wrote: > Hello, > I have been trying to achieve thumbnail for the uploaded images, but it > just don't seem to resize the image on the apache server

Re: New field in django

2013-09-08 Thread carlos
Hi try this ./manage.py convert_to_south myapp # if your app exist try read the doc http://south.readthedocs.org/en/latest/convertinganapp.html#converting-an-app Cheer, On Sun, Sep 8, 2013 at 11:29 PM, Xavier Ordoquy wrote: > Hi, > > The message is: "Table 'tcc_report'

Re: Any Tutorials on Django similar to Web2py ????????????????

2013-08-20 Thread carlos
https://docs.djangoproject.com/en/1.5/intro/tutorial01/ Cheers On Tue, Aug 20, 2013 at 9:57 AM, JAI PRAKASH SINGH < jaiprakashsingh...@gmail.com> wrote: > Any Tutorials on Django similar to Web2py > > -- > You received this message because you are subscribed to the Google

Re: django ajax jquery

2013-08-15 Thread carlos
Hi maybe you need find in google.com for example http://fromzerotocodehero.blogspot.com/2011/01/django-ajax-tutorial-part-1.html I think there are more tutorials Cheers, On Thu, Aug 15, 2013 at 6:09 AM, Scheck Nyori wrote: > Hello! > I am a noob in web development.

Re: Django Signal DataBase Change on Template

2013-08-01 Thread carlos
Hi if you need create app for real time try this app can help you https://github.com/stephenmcd/django-socketio or find other app https://www.djangopackages.com/grids/g/websockets/ Cheers On Thu, Aug 1, 2013 at 10:59 AM, wrote: > Hi, > > Flot is your friend.

Re: User Permissions

2013-08-01 Thread Carlos Leite
On Wed, Jul 31, 2013 at 2:01 AM, Jani Tiainen <rede...@gmail.com> wrote: > On Tue, 30 Jul 2013 16:39:27 -0300 > Carlos Leite <cadu...@gmail.com> wrote: > >> Django do not have a "per-row" permission system in the box. >> You will have to create that

Re: User Permissions

2013-07-30 Thread Carlos Leite
Django do not have a "per-row" permission system in the box. You will have to create that by yourself. You may start adding something like "owner" to your content type. this field will be somthing like owner = models.ForeignKey(User) then, based on "request.user" in your views (for instance),

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-15 Thread carlos
where is the error ?? On Mon, Jul 15, 2013 at 5:11 PM, maiquel wrote: > How to set up django on Apache > > I'm using django 1.4 > and apache 2.4 > and Python 2.7 > My configuration is well > > in httpd.conf > > WSGIScriptAlias / C :/ xampp / htdocs / My_blog /

Re: New to django, trying to implement a comment system, and rather uncertain about how to go about it

2013-07-15 Thread carlos
Hi ben you are try with this app http://disqus.com/ or you can use comment contrib app read this tutorial http://lightbird.net/dbe/blog.html#comments Cheers On Mon, Jul 15, 2013 at 2:52 PM, Ben Spatafora wrote: > Okay, I'm pretty new to django (and coding in

Re: form.errors

2013-07-11 Thread carlos
try this with django 1.5.1 from django.shortcuts import render def register_page(request): if request.method == 'POST': form = RegistrationForm(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect('/register/success/') else:

Re: django graphics

2013-07-10 Thread carlos
Hi the other library js for graphis is http://www.flotcharts.org/ On Wed, Jul 10, 2013 at 9:17 AM, pa xapy wrote: > why you do this with django? > there so many js libraries > i think that for the web purposes its best solution than generate graphics > with python. >

Re: Django automatically formatting ints with commas, bug?

2013-06-27 Thread carlos
try this https://docs.djangoproject.com/en/dev/ref/settings/#decimal-separator Cheers On Thu, Jun 27, 2013 at 7:32 PM, Stryder Crown wrote: > Any body know why django would format an integer as a comma seperated > value? i.e. 1578 becomes 1,578? > No, I'm not using

Re: Select2Multiple with list_filter :(

2013-06-25 Thread carlos
Hi maybe help you try this snippets http://djangosnippets.org/snippets/1758/ Cheers On Tue, Jun 25, 2013 at 6:21 AM, Jesús Lucas Flores wrote: > Hi i am looking for a thirth package for a usual funcinality : I want > filter for multiple values with list_filter for django

how could I get the instance of a proxy model

2013-06-12 Thread carlos
for example class ModelA(models.Model): field1 = charfield () field2 = charfield () field3 = charfield () def create_itemmodel (sender, instance, created, ** kwargs): print "here my class", instance class ItemModel(ModelA): class Meta: proxy = True

is possible to store a value of a field in a proxy model

2013-06-10 Thread carlos
Hi is possible to store a value of a field in a proxy model I explain how models are class Model1(models.Model): title = models.Charfield(blabla) class Model2(models.Model): name = models.CharField(blabla) fk_field = models.FK(Model1) and then important thing class

<    1   2   3   4   5   6   >