3

I'm super new to Django and currently working on an application that makes use of the awesome SQLite3 database. Only problem is that every time I deploy to AWS, the database information gets completely wiped. This is horrible for my blog because everyone's comments, likes, etc get deleted. :( How can I maintain the data after deployments? Or what can I use instead of SQLite3 without rewriting too much code?

Thanks!

2
  • Explain how you are deploying to AWS. Commented Dec 22, 2015 at 0:06
  • 1
    @DarkFalcon eb deploy [application name] from my terminal Commented Dec 22, 2015 at 3:10

1 Answer 1

2

you need to create a file called .ebignore. this file works like a .gitignore file and you need to write filenames you didn't want to deploy by per line.

EB CLI Documentation

Sign up to request clarification or add additional context in comments.

1 Comment

after adding sqlite3 file to .ebignore its not able to find the db; throws : no such table: django_session

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.