#23324: sites framework docs - omits the site id from the Site model
--------------------------------------+--------------------------
     Reporter:  kiddhustle            |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Documentation         |    Version:  1.6
     Severity:  Normal                |   Keywords:  documentaion
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  1                     |      UI/UX:  0
--------------------------------------+--------------------------
 The documentation for the sites framework omits the site id from the
 model.

 The site id is automatically added to the model by Django (the '''id
 attribute''') but no where in the documentation does it say that the user
 can access the '''current site_id''' via the model, only the ''domain''
 and ''name'' attributes are shown.

 It took me a good hour or so of searching for a way to get the current
 site id, before realising that like most model an 'id' attribute would be
 created for the Site model by Django (after browsing the Django source
 code).

 I should have guessed this earlier but it '''wasn't made obvious in the
 documentation'''.

 https://docs.djangoproject.com/en/1.6/ref/contrib/sites/

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23324>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.df9a727fbf0ab2e3a3b69334fac64373%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to