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
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
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
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
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
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
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
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
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
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
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
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.
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*
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
/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
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
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
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
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
-
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
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
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
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:
>>
>>
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...
;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
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
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
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,
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
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
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
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
%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>*
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
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
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
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
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
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
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
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
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
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
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
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
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
---
> Adventure Time http://theholenearthecenteroftheworld.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsu
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
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
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
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
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
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
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
*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
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
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
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
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
301 - 359 of 359 matches
Mail list logo