fork download
  1. class Vacancy(models.Model):
  2. user = models.ForeignKey(User)
  3. title = models.CharField(max_length=255)
  4. company_name = models.CharField(max_length=255)
  5. website = models.URLField(blank=True)
  6. about_company = models.TextField(blank=True)
  7. required_skills = models.TextField(blank=True)
  8. about_job = models.TextField(blank=True)
  9.  
  10. class VacancyForm(forms.ModelForm):
  11.  
  12. class Meta:
  13. model = Vacancy
  14. fields = ('title','company_name', 'website', 'about_company','required_skills','about_job',)
  15.  
Runtime error #stdin #stdout #stderr 0.02s 8688KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
NameError: name 'models' is not defined