I think you shoud use ForeignKey.
2015-09-17 23:49 GMT+08:00 周建华 :
> I have design the base model like this:
>
> class User
> some user attr
>
> class UserGroup
> some user_group attr
>
> class Asset
>...
>
> class AssetGroup
>...
>
>
> I want to authorize asset and asset_group to
Perhaps if you told us all what you would like help with, someone can
help you?
Stoo
On Tue, Sep 15, 2015 at 02:32:40PM -0500, Charly Román wrote:
> NO
>
> Charly Román
> Software Developer
> http://croman.mx
>
> 2015-09-15 12:46 GMT-05:00 Cassanova Rumor :
>
> > --
> > You received this messa
Hey everyone!
Say we have a:
class Friends(models.Model):
person_name = models.CharField(max_length=50)
so this will later on give us instances, like: 'Ben', 'Peter', 'Tom'
class Myself(models.Mode):
your_name = models.CharField(max_length=50)
and here I wish to add a dropdown/radio Ch
> Den 16/09/2015 kl. 19.08 skrev Simon Charette :
>
> If you want to use this approach I'm afraid you'll have to do
> what prefetch_related does under the hood by yourself.
>
> e.g.
>
> from collections import defaultdict
>
> prefetched = defaultdict(list)
> subjects = Subject.objects.filter(.
What is the nginx config? And where do I find it?
On Tuesday, September 15, 2015 at 12:46:40 PM UTC-7, Shawn Milochik wrote:
>
> It's very simple. Just follow these instructions:
>
> http://milocast.com/flasknginx.html
>
> Instead of the final line (gunicorn filename:appname -b 127.0.0.1:),
>
I'm having trouble deciphering what a APPMODULE is:
$(MODULE_NAME):$(VARIABLE_NAME)
What does Module_Name and Variable_NAME refer to in the context of a Django
project named "stats"?
Thanks
On Tuesday, September 15, 2015 at 1:02:59 PM UTC-7, Michiel Overtoom wrote:
>
> Hi Hugo,
>
> > I keep
I want to clear the session and auto redirect the user to login page if the
user is idle for some specific time .
i found , by using set_expiry() function we can set the idle time ,but
actually it clear the session after the specific time even if the user is
not idle .
i handle the above situa
Greetings,
I'm trying to create a M2M relation between an abstract base class and a
model that extends the same base.
I have the following code:
#Base object:
class BaseObject(models.Model):
datetime = models.DateTimeField(auto_now_add=True)
shared = models.ManyToManyField('userp
Hi Paolo,
Am 16.09.2015 um 22:52 schrieb Paolo C.:
[...], I need to annotate not only the price but also which is the book that
has that max value.
Isn't that exactly what I was wondering about, too?
"1) Is there a way to annotate each Store object with the actual Book objects related
to th
I have design the base model like this:
class User
some user attr
class UserGroup
some user_group attr
class Asset
...
class AssetGroup
...
I want to authorize asset and asset_group to user or user_group, I have no
good idea about the models design
If i set like this:
class
I update my gist and put 2 other files [1]
An init script (/etc/init.d/script) and an Django Command.
[1] https://gist.github.com/Arenhardt/8ac7e7667134c28eceed
--
Felipe Arenhardt Tomaz
Systems Developer
Curitiba - Paraná
www.felipetomaz.com
On Thu, Sep 17, 2015 at 10:57 AM, Erol Merdanović
w
@Felipe
Can you show an example what you mean by init script?
On Thursday, 17 September 2015 15:18:02 UTC+2, Felipe Tomaz wrote:
>
> I don't like to put the commands on supervisor. You can create an init
> script.
>
> --
> Felipe Arenhardt Tomaz
> Systems Developer
> Curitiba - Paraná
> www.feli
I don't like to put the commands on supervisor. You can create an init
script.
--
Felipe Arenhardt Tomaz
Systems Developer
Curitiba - Paraná
www.felipetomaz.com
On Thu, Sep 17, 2015 at 4:48 AM, Erol Merdanović
wrote:
> @Felipe
>
> Yes, I use very similar approach. Thank you for the example.
>
>
https://docs.djangoproject.com/en/1.8/topics/auth/customizing/
--
Rafael E. Ferrero
2015-09-17 2:31 GMT-03:00 Ravi Chityala :
> I am looking for an django app to do authentication and authorization
> using phone number. Apps like django-registration can use email address or
> user name for authe
I am looking for an django app to do authentication and authorization
using phone number. Apps like django-registration can use email address or
user name for authentication but my requirements are different. I used all
my googlefu but could not find a single django app that does it. Does
anyb
Hello, on Stackoverflow I created this question:
http://stackoverflow.com/questions/32625997/upgrade-django-and-noreversematch-password-error
Do you know anybody how can I fix it?
I tried somethong from this:
https://docs.djangoproject.com/en/1.8/releases/1.6/#django-contrib-auth-password-reset-
Hi everybody,
Django has got many features really interesting to reuse in APIs like its
builtin ORM or template engine.
Maybe I'm wrong but it seems required to initalize Django with the
configure() and setup() functions to register models and databases and make
the glue between several indepe
@Felipe
Yes, I use very similar approach. Thank you for the example.
I found a great project https://github.com/rfk/django-supervisor that
enables me to run Django commands under supervisor. I will test it and let
you know how it goes.
On Wednesday, 16 September 2015 19:38:59 UTC+2, Felipe Tom
> Den 17/09/2015 kl. 09.22 skrev Javier Guerra Giraldez :
>
> On Thu, Sep 17, 2015 at 2:07 AM, Erik Cederstrand
> wrote:
>>> Den 16/09/2015 kl. 16.45 skrev Mike Dewhirst :
>>>
>>> On 16/09/2015 9:53 AM, Erik Cederstrand wrote:
issues because the prefetch query does something along the line
On Thu, Sep 17, 2015 at 2:07 AM, Erik Cederstrand
wrote:
>> Den 16/09/2015 kl. 16.45 skrev Mike Dewhirst :
>>
>> On 16/09/2015 9:53 AM, Erik Cederstrand wrote:
>>> issues because the prefetch query does something along the lines of
>>> "SELECT ... FROM lesson_subjects WHERE lesson_id IN
>>> [insan
> Den 16/09/2015 kl. 16.45 skrev Mike Dewhirst :
>
> On 16/09/2015 9:53 AM, Erik Cederstrand wrote:
>> Hi folks,
>>
>> I'm working on a school timetable app. I want to fetch hundreds of
>> thousands of Lesson instances with prefetched m2m relations (e.g.
>> subjects). My m2m relations use throug
21 matches
Mail list logo