This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for post in posts %} | |
| <a href="{% url 'post' post_name_slug=post.slug %}"></a> | |
| {% endfor %} | |
| {% for post_comments in comments %} | |
| {{ post_comments }} | |
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PostForm(forms.ModelForm): | |
| title = forms.CharField(max_length=128) | |
| body = forms.CharField(max_length=245, label="Item Description.") | |
| class Meta: | |
| model = Post | |
| fields = ('title', 'body', ) | |
| class ImageForm(forms.ModelForm): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using RandomNameGeneratorLibrary; | |
| namespace VDBCore | |
| { | |
| public class Flight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace VDBCore | |
| { | |
| public class Baggage | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require("path"); | |
| var { LocalWorkspace } = require("@pulumi/pulumi/x/automation"); | |
| // get node command arguments, if the user | |
| // passed `destroy`. | |
| var args = process.argv.slice(2); | |
| var destroy = false; | |
| if (args.length > 0 && args[0]) { | |
| destroy = args[0] === "destroy"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pulumi Preview | |
| on: | |
| pull_request: | |
| branches: [master, release, staging, development] | |
| jobs: | |
| preview: | |
| name: Preview | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Merged | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| destroy: | |
| name: Destroy Pulumi Stack and Resources | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:12.16.3-alpine | |
| COPY package.json package-lock*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build |
OlderNewer