Thank you very much for the great answer!
You are correct, I didn't had a clear understanding of the RelatedObject
Principle. I think I added this when I was fiddling with the rest framework.
Of course, I also had thought about making MasterUser a boolean, but I need
to ensure that there is only
James,
I will read up on dbshell and give it a try. Thanks for the pointer.
Yes, I ran both 'makemigrations' and 'migrate' prior to posting.
If I can figure out how to close out the thread, I will.
Jim A.
On Sunday, May 21, 2017 at 12:03:42 PM UTC-4, James Schneider wrote:
>
>
>
> On May 21,
When is it best to build the Backed with Django's REST API
--
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
Hell, I spent 2 hours to understand why, when debug = False I have cached
templates!!!??!
I have not found in documentation any mention that NEW! features
class Engine(object):
if loaders is None:
loaders = ['django.template.loaders.filesystem.Loader']
if app_dirs:
loaders += [
Hi,
That is a very broad question and hard to answer directly.
Reasons why you would want a REST API:
1. Communicating with another server
2. Communicating with a mobile application
3. Creating a single page application with a javascript framework like
angular, react, jquery or the like.
I think
I'm working with Django 1.10.3 and I'm trying to look at the database
tables generated by Django using makemigrations and migrate. I was looking
to use 'python manage.py sql', but it looks like that is no longer
available. In a recent question to Django users, I was advised to use
dbshell whic
On May 22, 2017 2:20 PM, wrote:
I'm working with Django 1.10.3 and I'm trying to look at the database
tables generated by Django using makemigrations and migrate. I was looking
to use 'python manage.py sql', but it looks like that is no longer
available. In a recent question to Django users, I w
Hi all,
I'm following an example to setup Django with Haystack and ES from here:
https://krzysztofzuraw.com/blog/2016/haystack-elasticsearch-part-one.html
Everything seems to be working OK except from the number of the results –
they are always maximal 20. But actually a single query should g
Hi James,
I'm looking at the sqlite3 documentation now, but I'm still not quite sure
how to run the dbshell. Once I am in the shell, I assume that I can run
sqlite3 commands as needed. But when I enter:
*% python manage.py dbshell*
I get the following error messages:
*setting.py: BASE_DIR =
Hello, Дмитрий,
you can try this one, but w/o further optimizations it may be a very slow
query.
qs = Product.objects.filter(
#Where score is greater or equal
#to the 4th max score from its group
score__gte=Subquery(
(Product.objects
.filter(brand=OuterRef('brand')
On May 22, 2017 3:07 PM, "Jim Anderson" wrote:
Hi James,
I'm looking at the sqlite3 documentation now, but I'm still not quite sure
how to run the dbshell. Once I am in the shell, I assume that I can run
sqlite3 commands as needed. But when I enter:
*% python manage.py dbshell*
I get the follo
Hello.
updating 1.10 to 1.11.1 and get this error:
File
> "/home/aztrock/workspace/ariatel.com.co/local/lib/python3.5/site-packages/django/utils/autoreload.py",
>
> line 227, in wrapper
> fn(*args, **kwargs)
> File
> "/home/aztrock/workspace/ariatel.com.co/local/lib/python3.5/site-pac
You can use "Blame" button at
https://github.com/django/django/blob/master/django/template/engine.py to
find the commit for the line in question:
https://github.com/django/django/commit/277fe2e8f2ee35cd389b079ce7691491bb5738ec
That includes documentation updates as well as a mention in the 1.11
Which database backend are you using? I wonder if it's a third-party
backend that hasn't been updated for Django 1.11.
On Monday, May 22, 2017 at 6:40:11 PM UTC-4, Jorge Cadena wrote:
>
> Hello.
>
> updating 1.10 to 1.11.1 and get this error:
>
> File "/home/aztrock/workspace/
>> ariatel.com.co
James,
If you have the fortitude and kind heart to look at it, sure the code
base (just checked in) is here:
https://github.com/bernd-wechner/CoGs
it's the Create view on the Session model that is taking 30s to render,
no other model, and that one is the central model of interest with a
On 5/22/17 10:12 PM, Bernd Wechner wrote:
James,
If you have the fortitude and kind heart to look at it, sure the code
base (just checked in) is here:
https://github.com/bernd-wechner/CoGs
it's the Create view on the Session model that is taking 30s to
render, no other model, and that o
16 matches
Mail list logo