title: Django Custom Pagination - setting as default in settings.py
body: <p><strong>6.30.15 - HOW CAN I MAKE THIS QUESTION BETTER AND MORE HELPFUL TO OTHERS? FEEDBACK WOULD BE HELPFUL. THANKS!</strong></p>
  
  <p>I have a custom pagination I need to set for my Django Rest Framework. I have created a pagination.py file and placed the pagination settings there under a class.</p>
  
  <p>In Settings.py I have to point to it using the 'DEFAULT_PAGINATION_CLASS'. However, I can not get settings.py to find it. Even though I've specified the path. In the documentation I noticed there's a similar 'apps.core.pagination' path - <strong>do I have to create this?</strong> <strong>Where do I need to place this so the settings.py can read it?</strong></p>
  
  <pre><code>'DEFAULT_PAGINATION_CLASS': 
  'XXXX_XX_api.static.rest_framework.pagination.CustomPagination' 
  </code></pre>
  
  <p>UPDATE: 6.22.15 
  I added the custom pagination to my settings file, but now I'm getting a weird error. And I'm not sure why. Everything seems to be correct in my code. In the error it reads the custom pagination but it says that pagination is not defined. Any thoughts?</p>
  
  <pre><code> File "/home/dbadmin/epic_ar_api/epic_ar_api/epic_ar_api/pagination.py", line 5, in &lt;module&gt;
      class CustomPagination(pagination.LimitOffsetPagination):
  NameError: name 'pagination' is not defined
  [22/Jun/2015 13:29:24] "GET /machines/ HTTP/1.1" 500 59
  ^Cdbadmin@ubuntu:~/epic_ar_api/epic_ar_api$ 
  </code></pre>