Yes, it is actually correct, but I'd just like to force uuid generation at
database level (postgres supports it) and not via python/django
I can modify the table with raw sql after migration and disable
default=uuid.uuid4
inside django models, but I'm looking for a better way to accomplish it
Il
> I do have some limitations, one of which is I don't know what packages are
> installed on production server (for example, postgres dev libraries or
> specific version of python).
>
Hi,
What do you know about the production server? Do you know the operating system?
Can you become a superuser? If
Hey all,
To clarify my title quickly, this survey is not about replacing pip, as
yarn (https://github.com/yarnpkg/yarn) did recently with npm. This is about
helping you throughout the lifespan of projects you maintain keep a handle
on the dependencies it has. Where I work, we've already made
The SQL looks correct -- it's not using anything Python related. Are you
encountering some error?
On Tuesday, October 18, 2016 at 9:15:46 AM UTC-4, Andrea Posi wrote:
>
> I'm creating a rest api using Django and DRF. I don't want to expose IDs
> directly to clients so I'm trying to setup my mode
Assuming the problem is makemigrations generating different migrations
based on the Django version, conditionally adding operations in migrations
with some django.VERSION checks may help.
On Tuesday, October 18, 2016 at 7:12:02 AM UTC-4, Vlastimil Zíma wrote:
>
> Hi everyone,
>
> we are trying i
Thanks so much everyone. I looked over those files many times and I
couldn't see it.
On Tuesday, October 18, 2016 at 5:17:55 PM UTC-4, James Schneider wrote:
>
>
>
> On Tue, Oct 18, 2016 at 11:00 AM, Johnny McClung > wrote:
>
>> I have gotten down to the part where the tutorial reads "Load th
On Tue, Oct 18, 2016 at 11:00 AM, Johnny McClung
wrote:
> I have gotten down to the part where the tutorial reads "Load the page by
> pointing your browser at “/polls/”, and you should see a bulleted-list
> containing the “What’s up” question from Tutorial 2. The link points to the
> question’s d
Hi,
While I haven't personally dealt with such a situation with my Django
code, I have worked with people who had this issue (un-deterministic
production servers). They used Docker to solve this issue. Essentially
you're looking for deterministic deploys, and Docker is the first thing
that jumps t
Hi!
I would like to ask community about methods of shipping Django in
production.
I do have some limitations, one of which is I don't know what packages are
installed on production server (for example, postgres dev libraries or
specific version of python).
Right now my method is to crea
NYC
On Oct 19, 2016 12:57 AM, "Vijay Khemlani" wrote:
> You wrote "latest_quesion_list" in the context dictionary key, it should
> be "latest_question_list"
>
> On Tue, Oct 18, 2016 at 3:00 PM, Johnny McClung
> wrote:
>
>> I have gotten down to the part where the tutorial reads "Load the page b
You wrote "latest_quesion_list" in the context dictionary key, it should be
"latest_question_list"
On Tue, Oct 18, 2016 at 3:00 PM, Johnny McClung wrote:
> I have gotten down to the part where the tutorial reads "Load the page by
> pointing your browser at “/polls/”, and you should see a bullete
I have gotten down to the part where the tutorial reads "Load the page by
pointing your browser at “/polls/”, and you should see a bulleted-list
containing the “What’s up” question from Tutorial 2. The link points to the
question’s detail page."
I do not see a bulleted-list. All I see is "No po
On Fri, Oct 14, 2016 at 5:15 AM, Avraham Serour wrote:
> I will take a wild guess here and say that this is a modwsgi problem, it
> seems it will only load the django app after the first request.
Indeed, see this SO post for how to tell it to load your app
immediately on start up:
http://stackov
I want to get user data where is use a ChoiceSelect field. And if the user
selects an option another one pops up giving them the same choices again.
I understand that I would do this with JavaScript on the front end. But, it is
unclear to me what kind of architecture and model fields I should
I'm creating a rest api using Django and DRF. I don't want to expose IDs
directly to clients so I'm trying to setup my models like this example:
class AbstractGuidModel(models.Model):
uuid = models.UUIDField(blank=True, default=uuid.uuid4, unique=True,
editable=False)
class Meta:
Hi everyone,
we are trying in our application to support multiple Django versions,
specifically 1.7 to 1.9. But we encountered a problem with
`User.last_login` field. We use custom User model based on
`AbstractBaseUser` as specified by the documentation. Everything was fine
in Django 1.7, but
16 matches
Mail list logo