Django for Designers/Whats next: Difference between revisions

Content added Content deleted
imported>Paulproteus
(→‎Add our api method to api.py: Done with this section)
imported>Paulproteus
Line 317: Line 317:
</source>
</source>


==== create blank api.py file and add it to urls.py ====
==== configure our API via api.py and add it to urls.py ====


Within ''bookmarks'', create a new file called ''api.py''. Let the contents of that file be:
Within ''bookmarks'', create a new file called ''api.py''. Let the contents of that file be: