Skip to content

Add Blog application#3

Open
wasisi wants to merge 7 commits into
masterfrom
blog
Open

Add Blog application#3
wasisi wants to merge 7 commits into
masterfrom
blog

Conversation

@wasisi
Copy link
Copy Markdown
Owner

@wasisi wasisi commented Dec 29, 2017

Added blog application and added models to Django admin

@wasisi wasisi requested a review from pockerman December 29, 2017 12:50
@wasisi
Copy link
Copy Markdown
Owner Author

wasisi commented Dec 29, 2017

I'm not able to get the post_detail to work i.e. view when you click on individual blog items. Please check

@wasisi wasisi closed this Dec 29, 2017
@wasisi wasisi reopened this Dec 29, 2017
@pockerman
Copy link
Copy Markdown
Collaborator

Is this for training or you want blog? If you want a blog do you have something to show? If not the whole app can come later there are other things more important I believe than this or no? For instance do you have a contact page/form?

@wasisi
Copy link
Copy Markdown
Owner Author

wasisi commented Jan 4, 2018 via email

@pockerman
Copy link
Copy Markdown
Collaborator

well instead of doing the blog why don't you fix this then? The blog needs a lot of work and it's not so simple as it sounds and if you don't have material to put on it I don't think it's the right time to start it. For instance I judge as far more important the analysis of the collected data than creating a blog.

@wasisi
Copy link
Copy Markdown
Owner Author

wasisi commented Jan 4, 2018 via email

@pockerman
Copy link
Copy Markdown
Collaborator

Ok what you need to do is two things:

  1. Upload the cleaned document we generate
  2. Read the document and then store properly the entries

These two will look sth like this

def upload_doc(request):
    if request.method=='POST':
         #save the document
         #read the document and update DB
   else:
        #simply return the view

There are however some things to consider:

  1. Do you read the doc synchronously or asynchronously?
  2. Error handling (the doc may be clean but this does not mean that you won't get any errors)

Don't put all these in the mainApp. This app is there for serving simple views like the index page, about etc. You have the uploadFileApp for doing the uploading this is what I suggest but it's up to you in the end how you want to do it. Moreover, I strongly suggest to think a bit what you want to show eventually to your users before continuing and how they will interact your DB.

@wasisi
Copy link
Copy Markdown
Owner Author

wasisi commented Jan 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants