Re: help me

2017-12-07 Thread Alceu Rodrigues de Freitas Junior
http://catb.org/~esr/faqs/smart-questions.html Em 07/12/2017 19:04, kalla giga escreveu: help me with the basic of django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Creating my own register User page, when i want to go back to same page but with text fields filled with previous values, i'm getting slashes(/)

2017-09-21 Thread Alceu Rodrigues de Freitas Junior
http://catb.org/~esr/faqs/smart-questions.html Em 21/09/2017 14:38, fábio andrews rocha marques escreveu: My register page View is like this: | | | Entercode here... | | | -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: django

2017-09-21 Thread Alceu Rodrigues de Freitas Junior
http://www.catb.org/esr/faqs/smart-questions.html Em 21/09/2017 14:13, TECH ROYAL escreveu: how to create a  social interactivity website  with using django?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Deploying Oracle database to production enviroment

2017-08-30 Thread Alceu Rodrigues de Freitas Junior
Heh... why make things easier when we can complicate?  Instead of bringing your problem to you, you could push back on to them: ask them to have a "stage" schema (where you do have permission to change) they would just export later to the production environment. If they want audit, the database

Re: Retroactively seting up virtualenv

2017-07-14 Thread Alceu Rodrigues de Freitas Junior
I guess you don't need to do anything besides running "source /bin/activate" to use your new virtualenv ("whatever" should be directory where it is located). Em 14/07/2017 12:30, Rich Shepard escreveu: My business is not web site development and I'm starting development of a django

Re: Картинки в Django

2017-07-09 Thread Alceu Rodrigues de Freitas Junior
I don't have the slightest idea of what you wrote here, but the default language for this list is English... Em 09/07/2017 06:58, Юра Доренский escreveu: Всем доброго дня. Встал вопрос как реализовать картинки в Django. С текстом всё понятно создается модель, и потом вытаскивается с базы А

Re: Noobie question, can't get url request to work, 404

2017-07-05 Thread Alceu Rodrigues de Freitas Junior
You forgot to say what is going wrong... I guessing you're getting a: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/ Using the URLconf defined in |noobie.urls|, Django tried these URL patterns, in this order: 1. ^admin/ 2. ^hello/ The empty path

Re: Django + React: Shared Model Consistency

2017-07-05 Thread Alceu Rodrigues de Freitas Junior
Never used Django REST Framework (DRF) before, but I guess you're trying to achieve something that should be handled by your API documentation. It crossed my mind that you're looking for describing the payload your REST API expects and that should be done dinamically by the consumer. Never

Re: Deprecating model field (Deleting model field, but keeping DB column)

2017-07-05 Thread Alceu Rodrigues de Freitas Junior
It seems to me more a organization/project management isssue that something that should be handled by Django itself. Well, if I got the problem correctly, that is. It seems you can't remove the field from the Model class because that would remove the column from the underline table itself as

recommendation for Django + Bootstrap

2017-06-27 Thread Alceu Rodrigues de Freitas Junior
Hello folks, Could you please recommend any options available to integrate Django and Boostrap? I find out projects like https://github.com/dyve/django-bootstrap3, but I'm new to Boostrap and need something very basic: my views/templates should render nicely in different sizes os screens

Re: standard way for seeing permissions

2017-06-13 Thread Alceu Rodrigues de Freitas Junior
estion. Permission model itself is not exposed in admin but you could expose it yourself if you want to. Just for curiosity what would be the usecase? 13.6.2017 19.05 "Alceu Rodrigues de Freitas Junior" <alceu.freitas...@gmail.com <mailto:alceu.freitas...@gmail.com>>

standard way for seeing permissions

2017-06-13 Thread Alceu Rodrigues de Freitas Junior
Hello folks, Is there a standard way to see permissions on Django? I'm using the latest version, but "out-of-box" views on admin application only shows me the available permissions when checking them for a group or user. I would like to list the permissions or even search for them by Model

Re: Django + Django REST Framework SQL query response handling and serialization is very, very slow - yet not a “N+1” problem

2017-06-11 Thread Alceu Rodrigues de Freitas Junior
I'm guessing here that REST would not be the appropriate to handle "large" amounts of data, and probably that's why Melevyn suggested to use pagination. If your customer needs such data to be used off-line, I bet that would be better to generate a file in the appropriate format, compact it

Re: Django + Django REST Framework SQL query response handling and serialization is very, very slow - yet not a “N+1” problem

2017-06-11 Thread Alceu Rodrigues de Freitas Junior
This may be very basic thing to ask, but there is no harm to double check: are you using select_related instead of all for those two specific Models? Check out https://django-debug-toolbar.readthedocs.io/en/stable/index.html if you aren't using it yet, it will help you to get that very

Re: Django + Django REST Framework SQL query response handling and serialization is very, very slow - yet not a “N+1” problem

2017-06-11 Thread Alceu Rodrigues de Freitas Junior
jango-users@googlegroups.com <mailto:django-users@googlegroups.com>. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/989dd9f6-508a-4dd7-a085-c30557204f41%40googlegroups.com <http

Re: Django + Django REST Framework SQL query response handling and serialization is very, very slow - yet not a “N+1” problem

2017-06-11 Thread Alceu Rodrigues de Freitas Junior
There is some overhead by using ORM: this is inevitable. On the other hand, you didn't posted your ORM calls, and the queries are incomplete. If you think your queries are optimized (as I understand they are from your description), an workaround is to avoid using the ORM for those specific

Re: Filter queryset based on another model's foreign key in a class based view.

2017-06-10 Thread Alceu Rodrigues de Freitas Junior
See "reverse lookup" or "_set" function in order to do that. Your Answer model has a FK for the Topic, but not the other way around. See https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Generic_views, "Creating the Detail View template" for details about it, there are some

Re: count from multiple tables in a single query?

2017-05-31 Thread Alceu Rodrigues de Freitas Junior
Hi James, I'm curious... why dropping down from the ORM and doing a single query wouldn't be portable? I understand that it would happen if you use some kind of stored procedure in the DB, but I guess a single ANSI SQL would do it. Thanks! - Alceu Em 31/05/2017 17:29, James Schneider

Re: best practices for handling charts

2017-05-23 Thread Alceu Rodrigues de Freitas Junior
Thanks for answering James, I commented your e-mail below: Em 23/05/2017 12:06, James Schneider escreveu: On May 23, 2017 6:33 AM, "Alceu Rodrigues de Freitas Junior" <alceu.freitas...@gmail.com <mailto:alceu.freitas...@gmail.com>> wrote: Hello to all, I ha

best practices for handling charts

2017-05-23 Thread Alceu Rodrigues de Freitas Junior
Hello to all, I have some charts created with matplotlib and I would like to include them in my Django application. What is the considered best practices in order to do that? I'm considering processing the data and generating PNG files in "temporary" locations, so I when the chart file is