Giter Club home page Giter Club logo

Comments (7)

rosskarchner avatar rosskarchner commented on July 17, 2024

I considered suggesting settings move to settings.py-- although I admit being able to edit them in the Wordpress admin is a nice feature of RAMP.

I'd be on board for migrating them to settings.py or a separate file if you agree.

from django-nudge.

jroo avatar jroo commented on July 17, 2024

Yeah, I like the ability to edit them in admin, too. Is it safe to assume pk will always be 1? Will the admin enforce this? If not should we enforce that just one record exists no matter what the id and just grab it?

from django-nudge.

rosskarchner avatar rosskarchner commented on July 17, 2024

Right now admin does enforce it

On Feb 4, 2012, at 11:48 AM, Joshua [email protected] wrote:

Yeah, I like the ability to edit them in admin, too. Is it safe to assume pk will always be 1? Will the admin enforce this? If not should we enforce that just one record exists no matter what the id and just grab it?


Reply to this email directly or view it on GitHub:
https://github.com/jroo/django-nudge/issues/9#issuecomment-3811335

from django-nudge.

jroo avatar jroo commented on July 17, 2024

Nice. Does admin explicitly enforce that the id will always be 1 or does it just enforce one record (and the id could be anything)?

from django-nudge.

rosskarchner avatar rosskarchner commented on July 17, 2024

It doesn't acknowledge that other settings objects might exist: if you try to add one or look at the list, it does a get_or_create for pk=1, and redirects you to edit it

On Feb 4, 2012, at 2:19 PM, Joshua [email protected] wrote:

Nice. Does admin explicitly enforce that the id will always be 1 or does it just enforce one record (and the id could be anything)?


Reply to this email directly or view it on GitHub:
https://github.com/jroo/django-nudge/issues/9#issuecomment-3812501

from django-nudge.

jroo avatar jroo commented on July 17, 2024

Thanks fo the clarification. I'm closing this since settings should assume that pk=1.

from django-nudge.

rosskarchner avatar rosskarchner commented on July 17, 2024

http://word.bitly.com/post/19183796149/infrastructure-as-a-platform

from django-nudge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.