[Answer]-Where put my dajax file? Django

1๐Ÿ‘

i would suggest you to create a folder like lib inside your django project, where you have your manage.py, in lib folder you create a __init__.py file so it acts as a module and then keep your ajax.py inside that..

now you can do

from lib import ajax

in your code and it should work..

also as suggested by karthik..

in manage.py

import sys, os

sys.path.append(os.path.abspath(".")+"/lib")
๐Ÿ‘คabhishekgarg

Leave a comment