Hi, I'm building my own Django package to publish it to PyPI.
It has some JS dependencies. Some are mine, and some are external. What is
the best way to include them?
I can keep the js files within the plugin. I think this is something that
other django packages do, although it's not very clean
I thought python's uuid.uuid4 guaranteed a unique value. Am I missing
something?
Mark
On Sun, Oct 22, 2017 at 3:58 PM, James Schneider
wrote:
>
>
> On Oct 22, 2017 12:29 PM, "Andréas Kühne"
> wrote:
>
> Hi,
>
> I think you are correct with your pseudocode - you can do a
> Model.objects.filter(
On Oct 22, 2017 12:29 PM, "Andréas Kühne"
wrote:
Hi,
I think you are correct with your pseudocode - you can do a
Model.objects.filter(unique_code==random_code).count() - and then loop on
that. It should work.
I wouldn't do this, it can lead to a race condition where you can possibly
end up wit
Hi,
I think you are correct with your pseudocode - you can do a
Model.objects.filter(unique_code==random_code).count() - and then loop on
that. It should work.
The reason why I thought you should use the signals is because thats how I
have done the same things in the past. However, you can just o
I need this 10-digit unique ID for every model instance so users can easily
search up a specific model instance. It will be publicly displayed on the
website, unlike a primary key which is usually hidden
On Sunday, October 22, 2017 at 1:31:23 PM UTC-4, Avraham Serour wrote:
>
> The database usu
Hi Andréas,
Yes, by globally unique I mean a unique 10-digit ID is assigned to every
model instance of 'Dogs' within my application. This ID will be shown
publicly on the website to allow easy search access to a specific model
instance.
I think you are right about creating a new field to hold
The database usually handles this and you don't need to worry, there are
many corner cases and DB systems are able to handle them
But they won't look like whatever format you would like, usually it is just
a number
Why do you need the IDs to look like that?
On Oct 22, 2017 6:53 PM, "Jack Zhang"
I'm getting error status 404 and after open url its showing requested url
not found on this server
On Oct 22, 2017 7:59 PM, "Chinonso Okoroafor"
wrote:
> Go to https://devcenter.heroku.com/articles/getting-started-
> with-python#introduction you will find your answer there
>
> On Sunday, October
Hi,
When you say "globally unique" - I am supposing you mean within your
application?
What you need to do is set a field to be the primary key, see :
https://docs.djangoproject.com/en/1.11/topics/db/models/#automatic-primary-key-fields
However - it would be simpler to use the standard primary ke
Let's say I have a model called 'Dogs'. Users can create instances of
Dogs. For every Dogs instance that is created, I want to assign a globally
unique ID to it. The ID will be 3 capitalized letters followed by 7
numbers. E.g. ABC1234567, POZ2930193
What is the easiest way to go about doing
Go
to
https://devcenter.heroku.com/articles/getting-started-with-python#introduction
you will find your answer there
On Sunday, October 22, 2017 at 1:15:51 PM UTC+1, Harish Soni wrote:
>
> Hi All
>
> I'm having an assignment to make this application live on heroku but I am
> not aware about s
Hi All
I'm having an assignment to make this application live on heroku but I am
not aware about structure and changes what should I have to make it into
this project so I can easily make this project to live.. I got so many
answers but not understood so if any help from your side would be
ap
See:
http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#filtering-results-based-on-the-value-of-other-fields-in-the-form
On Friday, 20 October 2017 13:04:41 UTC+2, rajeev yadla wrote:
>
> hi have a form which have two fields. one field has a foreignkey from
> model A(in ima
13 matches
Mail list logo