Re: How migrate a CustomUser?

2015-01-28 Thread Jorge Andrés Vergara Ebratt
Hello, in Django 1.7+ you don't use syncdb you use a a mix of: python manage.py makemigrations And then use python manage.py migrate On Wed Jan 28 2015 at 11:03:06 AM Neto wrote: > I'm using syncdb to the class CustomUser(AbstractUser), my Django is 1.7, > how can I user migrate to a customuse

Re: Beginning Djangi

2015-02-18 Thread Jorge Andrés Vergara Ebratt
I think for this kind of questions you could benefit from checking https://www.djangosites.org/ There you can see a list of sites built with Django and get and idea of the kind of things you could do with it On Wed Feb 18 2015 at 7:49:02 AM Mukul Sharma wrote: > I am new to Django. I want to bu

Re: ImageField isn't working

2015-02-19 Thread Jorge Andrés Vergara Ebratt
Hello Valéria, That's Django's default, it doesn't handle media files by itself, if you are in development you can add this line to urls.py urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Don't forget you need to import static and settings: from django.conf import s

Re: Chained foreign Key

2015-02-26 Thread Jorge Andrés Vergara Ebratt
Hey, there is a python package you can install in Django called django-smart-selects its documentation is pretty easy to follow On Thu, Feb 26, 2015 at 7:23 AM Arumuga Odhuvar Sekkizhar < vaariyar2...@gmail.com> wrote: > Good Morning, > > Can I get the code or method

Re: Problem installing and using smart_selects

2015-03-01 Thread Jorge Andrés Vergara Ebratt
Check the git repo, the issues page, one of the issues (I think the 4th) says that in the tittle, Can not import simple json. You basically have to install it with pip but from the git branch, because they haven't updated pypy yet On Sun, Mar 1, 2015, 6:32 PM Michael Ackary wrote: > > Smart Sel

Re: Alternatives to Django REST Framework

2015-04-09 Thread Jorge Andrés Vergara Ebratt
I love DRF, but if you want to check something else, there is also Tastypie! Here you can find the docs: https://django-tastypie.readthedocs.org/en/latest/ On Thu, Apr 9, 2015 at 7:54 AM Amit Prahesh wrote: > Hi, > > while Django REST Framework seems wonderful to me, it is a heayweight > opti

Re: Migrations During Development

2015-04-25 Thread Jorge Andrés Vergara Ebratt
Are you using version control like GIT? I save the migration folder with the __init__.py in GIT, nothing else, because al the migrations will be diferent in the diferent servers. On Sat, Apr 25, 2015, 7:45 AM Filipe Ximenes wrote: > You should keep all project migrations, they will be used to up

Re: MySQL-python on ubuntu?

2014-07-09 Thread Jorge Andrés Vergara Ebratt
ango-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/08F54026-8F7B-4BA2-A805-2F

Re: sort by multiple fields using admin_order_field

2014-07-16 Thread Jorge Andrés Vergara Ebratt
glegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/53C6C3AA.1010803%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- *Jorge

Re: inicio en django

2014-07-26 Thread Jorge Andrés Vergara Ebratt
Es más fácil a través de pip, 'pip instal django' On Jul 26, 2014 4:19 PM, "juantonio v" wrote: > hola tengo el Django-1.6.5.tar.gz de django, ahora como lo instalo? > > > gracias! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsu

Re: Django app deployment step-by-step

2014-08-13 Thread Jorge Andrés Vergara Ebratt
t; To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6e790801-bcf7-42e2-9711-7c348202ee42%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/6e790801-bcf7-42e2-9711-7c348202ee42%40googlegroups.com?utm_medium=email&utm_source=foo

Re: Your further steps after tutorial?

2014-08-21 Thread Jorge Andrés Vergara Ebratt
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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users.

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Jorge Andrés Vergara Ebratt
his discussion on the web visit > https://groups.google.com/d/msgid/django-users/lvu3as%24pba%241%40ger.gmane.org > . > For more options, visit https://groups.google.com/d/optout. > -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt*

Re: trouble in startproject

2014-09-25 Thread Jorge Andrés Vergara Ebratt
Do you have django installed? pip install django On Sep 25, 2014 6:08 AM, "nandita srivastava" wrote: > Hi, > > I am new to django. I have installed django. I am trying to create new > project using command "django-admin.py startproject mysite" but I am > getting "django-admin.py is not recogniz

Re: Config: DB or git?

2014-09-30 Thread Jorge Andrés Vergara Ebratt
/groups.google.com/d/msgid/django-users/f518e9ed-e22d-49d6-8f0f-5ef8981b6d88%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are s

Something like admin's search_fields

2014-10-02 Thread Jorge Andrés Vergara Ebratt
m/alex/django-filter) I was wondering is such a project exists but for search_fields... Thanks in advance for your help -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt* *facebook.com/javebratt <http://facebook.com/javebratt>* -- You received th

Re: Something like admin's search_fields

2014-10-02 Thread Jorge Andrés Vergara Ebratt
I kept looking and I found one that works nice, I'll share it here if maybe someone is needs something similar http://gregbrown.co.nz/code/django-simple-search/ 2014-10-02 16:38 GMT-05:00 Jorge Andrés Vergara Ebratt : > Hello guys, > > I'm currently trying to add search func

Re: Django Project Website inaccesible

2014-10-27 Thread Jorge Andrés Vergara Ebratt
You can use something like http://www.downforeveryoneorjustme.com to see if web pages are really down or you can't enter. By the way, djangoproject.com is up & running On Oct 27, 2014 1:14 PM, "Tom Christie" wrote: > Seconding Larry. I don't see any issue. > > On Monday, 27 October 2014 18:06:17

Working with requests app

2014-11-02 Thread Jorge Andrés Vergara Ebratt
in my browser and I could see their certificate was broken, now I'm trying the production url, the certificate is ok, and I instead get the error: 'Response' object has no attribute 'get' I'm using: django 1.7.1 python 3.4.0 Any help would be very appreciated -

Re: Working with requests app

2014-11-03 Thread Jorge Andrés Vergara Ebratt
Nope, no good. I was looking to see if there was something like this posted in the group before and there was, I found this answer from 2009: "This is impossible to redirect a user to external site with post. urllib and urllib2 can only help to fetch data, but not to redirect a user." Anyone kno

Re: Working with requests app

2014-11-03 Thread Jorge Andrés Vergara Ebratt
I checked, it's sending the POST data, but what I need is to redirect the user to the external site WITH the post data... So I think I'm going with the form + hidden fields solution On Mon Nov 03 2014 at 8:13:08 AM Collin Anderson wrote: > Hello, > > >> "This is impossible to redirect a user to

Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Jorge Andrés Vergara Ebratt
When you are in Python3 you don't use __unicode__ you use __str__ On Tue, Nov 11, 2014, 3:14 PM Arjan de Knegt wrote: > I am using Django 1.7.1 with python 3.4.0 for my latest project. > I am working on a model called Song. In the admin site all object that I > add show as "Song object" where I

Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Jorge Andrés Vergara Ebratt
Actually yo could do it with CSS alone... You can have the 2 images on the server and add both in the html And having the CSS like: On Thu, Nov 20, 2014, 3:59 AM Andreas Kuhne wrote: > 2014-11-20 9:44 GMT+01:00 Alex Strickland : > >> On 2014-11-20 08:05 AM, ThomasTheDjangoFan wrote: >> >>

Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Jorge Andrés Vergara Ebratt
a media query for small screens You can set the media query for the screen size you are going to make the change and just swap display none to the big one On Thu Nov 20 2014 at 7:26:27 AM Jorge Andrés Vergara Ebratt < javebr...@gmail.com> wrote: > Actually yo could do it with CSS alone...

Using Sum() for a models method inside a Query

2014-11-23 Thread Jorge Andrés Vergara Ebratt
;s in, but how can I get the Sum, or Avg of that method? I tried doing Sum('getC') but I get the error because getC isn't callable in the query... Thanks in advance for the help -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt* *fac

Re: Using Sum() for a models method inside a Query

2014-11-24 Thread Jorge Andrés Vergara Ebratt
14-11-24 4:21 GMT+00:00 Ethan Blackburn : > >> related: https://groups.google.com/forum/#!topic/django-users/s9qgXC4TNrA >> >> Short answer: you can't. A raw query would be your best bet(i.e. "SELECT >> SUM(a + b) AS sum FROM app_X") >> >> &g

django-smart-selects

2014-12-11 Thread Jorge Andrés Vergara Ebratt
ctionalities in django? Thanks in advance for the help! -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt* *facebook.com/javebratt <http://facebook.com/javebratt>* -- You received this message because you are subscribed to the Google Groups &qu

Re: django-smart-selects

2014-12-14 Thread Jorge Andrés Vergara Ebratt
t; one of those features and coding the other one by hand. > > It might make sense to use the (select2, chosen, jQuery Autocomplete) > library, and handle the dependent selects on your own using your own code. > The dependent-selects seems easier to me. > > Collin > > On Thursda

how to learn django and I don't kill in the attempt,

2014-12-14 Thread Jorge Luis Callalle Torres
how to learn django and I don't kill in the attempt, suggestions, recommendation. Do you know any resource, books videos for learn django from 0 ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: how to learn django and I don't kill in the attempt,

2014-12-14 Thread Jorge Andrés Vergara Ebratt
I think the best way to start learning Django it's following the official docs... https://docs.djangoproject.com/en/1.7/ 2014-12-14 16:49 GMT-05:00 Jorge Luis Callalle Torres : > > how to learn django and I don't kill in the attempt, > suggestions, recommendation. > Do

Re: Error when change a CharField to IntegerField

2014-12-30 Thread Jorge Andrés Vergara Ebratt
roups.google.com/d/msgid/django-users/67d68cf4-4feb-4656-b8e0-2651f9e25830%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/67d68cf4-4feb-4656-b8e0-2651f9e25830%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d

Re: Django admin for public pages

2014-04-08 Thread Jorge Andrés Vergara Ebratt
Depending on the project, I've done projects entirely made of the admin On Apr 8, 2014 11:53 AM, "Andrew Pashkin" wrote: > I'm thinking about using django.contrib.admin for public facing pages. > On the one hand, seems like it is not recommended: > > It's not intended to be a *public* interface t

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Jorge Andrés Vergara Ebratt
%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt* *facebook.com/javebratt <http://facebook.com/javebratt>*

Re: Stuck on Tutorial-- can't import Question

2014-05-04 Thread Jorge Andrés Vergara Ebratt
Check the models.py file, you might have a typo in Question On May 4, 2014 7:44 PM, "Tim Fong" wrote: > Hi, > Here's my code: > >> from django.contrib import admin >> # Register your models here >> from django.contrib import admin >> from polls.models import Question >> admin.site.register(Questi

Re: Installing Database for creation of database driven Web-application using Django

2014-05-05 Thread Jorge Andrés Vergara Ebratt
Look in the Django documentation, it has great examples for doing that. I suggest you also follow the polls app tutorial. On May 5, 2014 11:14 AM, "Neeta Jawale" wrote: > Hi, > I am new to Django framework. I have just started learning Django > framework and I am new to web development . > Can an

Re: TDD

2014-05-31 Thread Jorge Andrés Vergara Ebratt
up at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/21274350-53F1-489B-8546-159C6FF7ED10%40gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- *Jorge Andr

Re: Can't get MySQLdb

2014-06-09 Thread Jorge Andrés Vergara Ebratt
st to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/48ed7944-66fb-4541-9d73-8e8ffb698746%40googlegroups.com > <https

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
You need to import HoleImage in admin.py On Jun 11, 2014 3:19 PM, "Patrick C" wrote: > Hi All, > > New to Django / Python (coming from PHP). > > Trying to make a site for a golf course where there is a hole by hole > guide, each hole has a number, name, description then multiple images for > the

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
In admin.py you have from hotels.models import Hole Add HoleImage to that import On Jun 11, 2014 3:19 PM, "Patrick C" wrote: > Hi All, > > New to Django / Python (coming from PHP). > > Trying to make a site for a golf course where there is a hole by hole > guide, each hole has a number, name, d

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
When you import HoleImage don't remove Hole :) On Jun 11, 2014 3:41 PM, "Patrick C" wrote: > Hi Jorge, > > Thanks for helping out - I understand that and have just tried it but > still get the error: > > NameError at /admin/ > > name 'Hole' is n

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
Oh and in the last line, admin.site.register, use the model you want to register in the Admin On Jun 11, 2014 3:41 PM, "Patrick C" wrote: > Hi Jorge, > > Thanks for helping out - I understand that and have just tried it but > still get the error: > > NameError at /a

Re: Who are using Aptana Studio 3? Please respond.

2014-06-18 Thread Jorge Andrés Vergara Ebratt
fff-f697-45d3-9d5a-f8a818cc4b15%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be)* *@javebratt* *facebook.com/javebratt <http://fac

Re: Jump on 1.7 in new project or stick to 1.6, target release date 30th of September

2014-06-22 Thread Jorge Andrés Vergara Ebratt
I've been asking myself the same thing, I think I'm going to start with Python3 and Django 1.7 :) On Jun 22, 2014 8:20 AM, "pjotr" wrote: > We are starting a new project and 1.7 is not far away according to > information provided in the release plan etc. Do we "dare" to jump on 1.7 > already now

Re: Best Django apps/extensions

2014-06-27 Thread Jorge Andrés Vergara Ebratt
I thinks it depends a lot on the project, but for almost every project I use South to manage my DB migrations, Pillow to handle images and rest framework to make my APIs On Jun 27, 2014 7:22 AM, "Greg Niewisiewicz" wrote: > Hi, > > I'm working on a short guide about setting up a new Django projec

Creating subusers

2014-07-01 Thread Jorge Andrés Vergara Ebratt
that later I can set my code that those users can only see that agency's information? Or would making groups be better to handle this kind of situations? Appreciate any help I can get, thanks in advance -- *Jorge Andres Vergara Ebratt* *#SoftwareDeveloper (Or at least trying to be

Re: Creating subusers

2014-07-02 Thread Jorge Andrés Vergara Ebratt
ate Models as a good solution for these > type of weird situations > > > https://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships > > Cheers > L. > > On 2 July 2014 12:20, Jorge Andrés Vergara Ebratt > wrote: > > Hell

Re: Multiple projects on one server

2014-07-02 Thread Jorge Andrés Vergara Ebratt
--- > Adventure Time http://theholenearthecenteroftheworld.com/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsu

Re: Unicode Str error [Beginner question]

2014-07-03 Thread Jorge Andrés Vergara Ebratt
Def __str__ is a comment, you can ommit it On Jul 3, 2014 2:37 PM, "Lian Tombing" wrote: > When I tried to implement the example, > > class Poll(models.Model): > # ... > def __unicode__(self): # Python 3: def __str__(self): > return self.question > > I get the error, > > Tab erro

Django Project Using Azure App Services Not Connecting to Azure SQL Server Through Active Directory

2019-06-18 Thread Jorge William Pava Hernández
We are experiencing a problem with the Python connection to an Azure SQL Server, when trying to use the Active Directory as method for authentication. The error says that the user is blank and the domain name is malformed. Anyone having the same issue? -- You received this message because you

Hi, I'm new django. I want to learn Django. What's the first step.

2019-09-01 Thread Jorge Luis Callalle Torres
Hi, I'm new django. I want to learn Django. What's the first step What advice you could give me. Any course, resources, or books thanks a lot friends -- *Jorge Luis Callalle Torres* 5359480 / 934835047 -- You received this message because you are subscribed to the Google Group

Fixed column width in admin interface?

2015-11-14 Thread Jorge Fernandez-de-Cossio-Diaz
A column of my Django admin interface sometimes has too much text. When this happens, I would like to replace the last part of the text with "...", so that the column width doesn't gets past a maximum character count. How can I do this? -- You received this message because you are subscribed t

Re: Django admin add related object doesn't open popup window?

2015-11-19 Thread Jorge Fernandez-de-Cossio-Diaz
I pressed F12 on Firefox, and played around to see if I could find anything. But I didn't see anything that looked like an error. But I'm not sure what I am looking for. What else can I do? On Tuesday, October 27, 2015 at 11:32:33 AM UTC-4, Tim Graham wrote: > > Please check the JavaScript cons

Re: Django admin add related object doesn't open popup window?

2015-11-19 Thread Jorge Fernandez-de-Cossio-Diaz
can try to > reproduce it as well. > > On Thursday, November 19, 2015 at 8:32:32 AM UTC-5, Jorge > Fernandez-de-Cossio-Diaz wrote: >> >> I pressed F12 on Firefox, and played around to see if I could find >> anything. But I didn't see anything that looked like an error

Re: Django admin add related object doesn't open popup window?

2015-11-20 Thread Jorge Fernandez-de-Cossio-Diaz
Is there another test I can do? On Thursday, November 19, 2015 at 11:48:41 AM UTC-5, Jorge Fernandez-de-Cossio-Diaz wrote: > > I'm trying to isolate a small example of the error, but I still haven't > quite diagnosed the problem. I appreciate your help. This what I get in t

Re: Django admin add related object doesn't open popup window?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
*UPDATE:* The admin popups work fine with `manage.py runserver`. The are broken only in the deployed project with apache2. Note that I did not change any setting between both deployments. I hope this narrows it down. -- You received this message because you are subscribed to the Google Groups

Re: Django admin add related object doesn't open popup window?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
I wasn't able to produce a minimal example of what was going on, but it is fixed now. Essentially, I did the following: 1. Upgraded to Django 1.8.6 . 2. Ran python manage.py collectstatic (as suggested in https://community.webfaction.com/questions/18544/there-is-not-popup-window-for

How to wrap text on Django admin columns with long text?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
In Django's admin interface, on the table displaying all the items in my database, sometimes a column gets too big, because an item has a long line of text at this field. This looks ugly and makes the table hard to use. I want to fix this by automatically adding line breaks (that is, wrapping l

Re: Fixed column width in admin interface?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
Adding the `list_display` method worked. With Polonkai's solution, just for curiosity, where do I have to "apply the CSS"? I am a newbie, please give the details. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

How to search by country using django-countries?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
I have a Model containing a CountryField (using https://pypi.python.org/pypi/django-countries): class Person(models.Model): name = models.CharField(max_length=100) country = CountryField( countries_flag_url='//flags.example.com/{code}.png') I want to be able to search in admin in

<    1   2   3   4