Re: Create data from django models from .csv file using pandas library

2018-10-15 Thread Gaurav Toshniwal
import pandas as pd df = pd.read_csv(RESOURCE_ROOT + '/data_files/102018_core_business.csv') for index, row in df.iterrows(): business_instance, created = Business.objects.get_or_create(business_id=row['id'], business_name=row['name']) On Monday, October 15, 2018 at 3:12:45 PM UTC+4, Moh

Re: NoReverseMatch at /blog/

2018-10-15 Thread Gaurav Toshniwal
I think it's because the 4th parameter to the URL config is \w+, which means match one or more words, which is not the case while trying to construct the reverse URL, since the 4th parameter passed is an empty string. On Monday, October 15, 2018 at 9:57:44 PM UTC+4, Mohamed Awad wrote: > > hi I