Re: djangorestframework vs GraphQL

2019-11-12 Thread Nick Sarbicki
your data) doesn't enthuse me. It's an interesting solution to a problem I've never really had. Not to say it isn't useful in some situations, I just haven't yet encountered a situation where it is. - Nick On Tue, Nov 12, 2019 at 9:14 AM guettli wrote: > Hi, > &

Re: Best Django Deployment

2020-01-25 Thread Nick Sarbicki
I've used nginx+gunicorn/uwsgi, Apache+modwsgi, Google app engine flex, Google app engine standard, heroku, kubernetes on various cloud platforms, elastic beanstalk deployments and various others. Realistically I don't think there is a "best" way. It all depends on your environment, what you're wo

Re: Best Django Deployment

2020-01-25 Thread Nick Sarbicki
i.e should i user Nginx/Gunicorn or Nginx/uwsgi ?? are there any > performance gain ? > > What about running Django in an Asynchronous way , i mean using django > with Asgi rather than Usgi ?? any performance gain too ?? > > On Sat, Jan 25, 2020 at 1:09 PM Nick Sarbicki > wrote: &g

Re: Hosting a django website

2020-01-26 Thread Nick Sarbicki
It depends on the shared host. Shared hosts generally only have installed a set of standard tools which they decide on. This may or may not include things like python (2 or 3) and other requirements you need. A lot of the time as a result it does not prove possible to run a Django site on shared ho

Re: Getting the first item in a dict

2020-01-27 Thread Nick Sarbicki
tem in the dict. Although it is worth noting this will also remove that item from the dict (giving you a single non-nested dict which seems more desirable). - Nick On Mon, Jan 27, 2020 at 12:32 PM Mike Dewhirst wrote: > Can you use ddict[ddict.keys()[0]] ??? > > I don't know if

Re: Running 2.7 python project with python 3.7

2020-02-13 Thread Nick Sarbicki
f the code does not work in 3.7, your options are to rewrite the code so that it does. - Nick On Thu, Feb 13, 2020 at 9:54 AM Luka Nik wrote: > Is there a way to run a project with python 3.7 if it's written with > python 2.7? > And what are my options if not? > Cheers, > L

ForeignKey with 0 meaning Null

2008-07-07 Thread Nick Craig-Wood
null=True """ def __get__(self, instance, *args, **kwargs): # never gets called print "Instance %r " % instance def to_python(self, value): # never gets called print "to_python %r" % value I'm using svn of few da

Re: ForeignKey with 0 meaning Null

2008-07-12 Thread Nick Craig-Wood
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > I'm adapting a legacy database for use with Django and I've come > across a problem I haven't been able to solve! > > The database has ForeignKey fields which are sometimes 0, meaning > there is no r

HELP - Writing your first Django app, part 1

2016-10-14 Thread &#x27;Nick Bansal' via Django users
Hi, I'm struggling to figure out how to do the following command: "To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:" How do I create a file called urls.py in the app directory? am I missing something completely obvious? Any he

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread &#x27;Nick Bansal' via Django users
Text if you're looking for options) and save the file as urls.py > inside the polls directory. > > Asad Jibran Ahmed > > http://blog.asadjb.com > > On Fri, Oct 14, 2016 at 8:00 PM, 'Nick Bansal' via Django users < > django...@googlegroups.com > wrote:

Re: HELP - Writing your first Django app, part 1

2016-10-16 Thread &#x27;Nick Bansal' via Django users
Cheers! got it! On Friday, 14 October 2016 22:45:05 UTC+1, Asad Jibran Ahmed wrote: > > Just save the file inside the *poll *folder. That creates the file. > > Asad Jibran Ahmed > > http://blog.asadjb.com > > On Fri, Oct 14, 2016 at 9:55 PM, 'Nick Bansal

<    2   3   4   5   6   7