friends dont let django suck

71 views
Skip to first unread message

Saeon Tao

unread,
Aug 15, 2016, 4:15:37 AM8/15/16
to Django users
PLEASE can some really amazingly intelligent cyborg invent a *django* website that has one input on a single page.

Arrive at this marvel of a website and input any normal, ordinary SQL query and click >enter<!!!

The SQL query then goes to django head office mainframe, where their very special computer can figure out a deeply complicated "django queryset" to match the SQL, and return this queryset to the page, so that normal humans dont have to spend 9 hours learning a language which i suspect might have been purposefully engineered to NOT resemble ordinary sql in any way whatsoever. Then we can get down to making websites instead of learning alien languages hey?
and soon as this is done, then i can get a few photographs out of the database where some of them are not empty, without having to write extra python code.

or it could just be me obviously.

thanx :)

Omar Abou Mrad

unread,
Aug 15, 2016, 4:39:04 AM8/15/16
to django...@googlegroups.com
I'm not sure if I understood or took the bait, but if you're uncomfortable with the ORM then

1) Django may not be what you're looking for
2) You could try having your way raw queries. with https://docs.djangoproject.com/en/1.10/topics/db/sql/#performing-raw-queries

Good luck.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/e125d1e9-d902-4128-aa48-481cda35b19a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniele Procida

unread,
Aug 15, 2016, 5:04:38 AM8/15/16
to Django Users
On Mon, Aug 15, 2016, Saeon Tao <sha...@gmail.com> wrote:

>Arrive at this marvel of a website and input any normal, ordinary SQL query
>and click >enter<!!!
>
>The SQL query then goes to django head office mainframe, where their very
>special computer can figure out a deeply complicated "django queryset" to
>match the SQL,

I have to admit, I never imagined I might read this proposal to make life easier...

Daniele

ludovic coues

unread,
Aug 15, 2016, 5:09:38 AM8/15/16
to django...@googlegroups.com
Or it is just you ;)

Why don't you use a less baity title and tell us what is your problem.
What are you trying to do, what have you tried, what is the result,
what does the models look like...

Sometimes, all you need is someone new looking at you code.
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/20160815090348.1086777816%40mail.wservices.ch.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

Saeon Tao

unread,
Aug 15, 2016, 6:42:10 AM8/15/16
to Django users
LoL, thank you everyone! please forgive, i was just having a moment with django... you understand, im a real makebelieve hotshot when it comes to php, but now with my freshly inhereted django app, im a moron again... :p

I really been starting at the bottom here, trying to avoid raw sql because i dont want to be a douche and not try understand django.
This app also has the django rest framework in it, which im just discovering now also.

Thank you for replies, and Daniele, the hotshot that makes that one pager is going to get a lot of hits! a LOT! and i think it would help people learn far quicker than reading the docs, because the docs are not designed for beginners

The body of my post is really to suggest the creation of a translator, from SQL to django queryset. Theres alot of these translations in the docs, altho i dont know about anyone else, but i learn more from things that work, than things that don't work, ie, spending 3 hours this morning getting a couple pics onto html... LoL

thank you

also, please can someone comment on something. i notice that im having issues with getting ajax to work. is this because django wants me to use a plugin instead?

ludovic coues

unread,
Aug 15, 2016, 7:54:02 AM8/15/16
to django...@googlegroups.com
This is the doc you are looking for
https://docs.djangoproject.com/en/1.10/ref/csrf/#ajax
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/7eb68b81-16bb-4761-b9e8-59854d99d0e0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages